[R] extracting submatrix from a bigger one
matteo.ghetta at gmail.com
Mon Jun 24 16:36:17 CEST 2013
I'm a newby, so sorry for the easy question.
I have a matrix (459x28) in which a large number of observations are
repeated (same placed sampled in different times).
One of the columns is refers to the ID of the place of sampling.
What I would like is to extract subset matrix for every point of sampling.
I can do it manually, e.g. x1<-data.frame(dataset[dataset$ID=="x1",])
but is it possible to write a script and let do it to R?
So i got n submatrix of the n ID found in the original columns.
More information about the R-help