[R] extracting submatrix from a bigger one

matteo matteo.ghetta at gmail.com
Mon Jun 24 19:03:47 CEST 2013


Hi,

> result <- lapply(unique(dataset$ID), function(uid) dataset[dataset$ID 
> == uid, ])
Ok, I have the element result as a list

> names(result) <- unique(dataset$ID)
Nothing happens. I don't have any submatrix...

Matteo



More information about the R-help mailing list