Re: [R] select cases

From: Christoph Lehmann <christoph.lehmann_at_gmx.ch>
Date: Wed 20 Apr 2005 - 01:04:13 EST

subset(your.data.frame, your.data.frame$sex == 'male')

cheers
c

Faouzi LYAZRHI wrote:
> Hi,
> I would like to select a few cases (for example cases corresponding to
> sex=male) to make summary for another variable.
> How can I do this.
> Thanks for your help
> Fawtzy
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
>
https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Apr 20 00:33:10 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:16 EST