[R] subset on data frame

Thomas Lumley tlumley at u.washington.edu
Sat Nov 20 02:01:05 CET 2004

On Fri, 19 Nov 2004, Lei Jiang wrote:

> I have a data frame. And I'd like to subset according to rownames.
> subset(mydataframe, rownames(mydataframe) == myrow, select = mycols)
> it turned out that "myrow" cannot be a vector. But I have multiple rows to 
> pick. Is there a way to get around this problem??



More information about the R-help mailing list