Skip to content

subset on data frame

2 messages · Lei Jiang, Thomas Lumley

#
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??

Thank you for your help!!

Lei Jiang

Department of Chemsitry
University of Washington
Box 351700
Seattle, WA 98195
Phone: 206-616-6882
Fax: 206-685-8665
#
On Fri, 19 Nov 2004, Lei Jiang wrote:

            
?"%in%"

 	-thomas