Ooops !  Thanks.

--- On Tue, 7/22/08, Peter Dalgaard <[EMAIL PROTECTED]> wrote:

> From: Peter Dalgaard <[EMAIL PROTECTED]>
> Subject: Re: [R] How to filter a data frame?
> To: [EMAIL PROTECTED]
> Cc: r-help@r-project.org, "rlearner309" <[EMAIL PROTECTED]>
> Received: Tuesday, July 22, 2008, 10:19 AM
> John Kane wrote:
> > ?subset
> >
> > Is this what you want? 
> >
> > subset(dataset, gender="M" | age < 50) 
> >
> >   
> In case you didn't see it: Make that
> 
> gender == "M"  |  age < 50
> 
> -- 
>    O__  ---- Peter Dalgaard             Ă˜ster Farimagsgade
> 5, Entr.B
>   c/ /'_ --- Dept. of Biostatistics     PO Box 2099,
> 1014 Cph. K
>  (*) \(*) -- University of Copenhagen   Denmark     
> Ph:  (+45) 35327918
> ~~~~~~~~~~ - ([EMAIL PROTECTED])              FAX:
> (+45) 35327907


      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now at
http://ca.toolbar.yahoo.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to