[R] subset of rows from matrix
Wade Wall
wade.wall at gmail.com
Fri Jul 28 19:24:25 CEST 2006
Hi all,
I have a dataframe of rownames that I would like to extract from a
larger matrix to form a new matrix. I have tried to use subset, in
this manner
x<-subset(largematrix, rownames$names=largematrix$rownames)
where largematrix is the larger matrix and rownames$names is the
dataframe with the row names of the rows I want to extract from the
larger matrix.
Of course, I get error messages. Any suggestions how I should proceed?
Thanks
Wade
More information about the R-help
mailing list