Message-ID: <BA2AB7B8-F981-49B3-BFAB-BE36CAE471BF@gmail.com>
Date: 2008-03-07T15:56:06Z
From: Charilaos Skiadas
Subject: locate the rows in a dataframe with some criteria
In-Reply-To: <BAY110-W50A02DE0AE12403AEB55D7C7130@phx.gbl>
On Mar 7, 2008, at 10:50 AM, zhihuali wrote:
>
> Hi, netters,
>
> This is probably a rookie question but I couldn't find the answer
> after hours of searching and trying.
>
> Suppose there'a a dataframe M:
>
> x y
> 10 A
> 13 B
> 8 A
> 11 A
>
> I want to locate the rows where x >=10 and y="A". I know how to do
> it to vectors by using
> which, but how to do it with the dataframe?
>
Does ?subset do what you want?
> Thank you very much!
>
>
> Zhihua Li
>
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College