Skip to content
Back to formatted view

Raw Message

Message-ID: <42651DED.3000808@gmx.ch>
Date: 2005-04-19T15:04:13Z
From: Christoph Lehmann
Subject: select cases
In-Reply-To: <42651326.1090204@envt.fr>

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