Re: [R] How to filter a data frame?

From: rlearner309 <>
Date: Tue, 22 Jul 2008 13:51:54 -0700 (PDT)

Thank you all!! :-)

rlearner309 wrote:
> I have a question about how to filter the data frame:
> Suppose my data frame has variables like gender, age,... How to get a
> subset of the data frame, with only female (or male) and/or age > 50...?
> What is the typical syntax? I tried several condition expressions, but
> none of them worked...
> Thanks a lot!

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 22 Jul 2008 - 21:46:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Jul 2008 - 22:32:04 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive