[R] select cases
Achim Zeileis
Achim.Zeileis at wu-wien.ac.at
Tue Apr 19 16:30:41 CEST 2005
On Tue, 19 Apr 2005 16:18:14 +0200 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.
Look at ?tapply. E.g.
tapply(x, group, summary)
Z
> 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
>
More information about the R-help
mailing list