Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.A41.4.61b.0411191700540.250526@homer11.u.washington.edu>
Date: 2004-11-20T01:01:05Z
From: Thomas Lumley
Subject: subset on data frame
In-Reply-To: <Pine.A41.4.61b.0411191648490.335134@homer06.u.washington.edu>

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

?"%in%"

 	-thomas