search for: oldmat

Displaying 4 results from an estimated 4 matches for "oldmat".

Did you mean: oldmac
2005 Apr 15
4
function corresponding to map of perl
Is there a function in R that corresponds to the function ``map'' of perl? It could be called like: vector.a <- map( vector.b, FUN, args.for.FUN ) It should execute for each element ele.b of vector.b: FUN( vector.b, args.for.FUN) It should return a vector (or data.frame) of the results of the calls of FUN. It nearly works using: apply( data.frame( vector.b ), 1, FUN,
2010 Oct 12
2
extract rows of a matrix
Hi all, I want to extract every 20th row of a big matrix, say 10000 by 1000. What is the simper way to do this? Thank you very much! Hannah [[alternative HTML version deleted]]
2010 Jun 10
2
adding column of ordered numbers to matrix
Hello everyone, I have a matrix of over 40000 line and about 30 columns. For my analysis I would like to add another column with ascending numbers (column header should be "order", and than 1,2,3,4 ....the end of the matrix). During my analysis I reorder them ( due to merge commands by a different column). How do I add such a column in an ascending order (or descending for what it
2010 Oct 15
0
nomianl response model
...ail.org> To: li li <hannah.hlx at gmail.com>, r-help <r-help at r-project.org> Subject: Re: [R] extract rows of a matrix Message-ID: <B37C0A15B8FB3C468B5BC7EBC7DA14CC633E8150FF at LP-EXMBVS10.CO.IHC.COM> Content-Type: text/plain; charset="us-ascii" > newmat <- oldmat[ c(rep(FALSE,19),TRUE), ] Or > newmat <- oldmat[ seq(20, nrow(oldmat), 20), ] -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111 > -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bo...