Re: [R] select cases

2005-04-19 Thread Achim Zeileis
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 > >

Re: [R] select cases

2005-04-19 Thread Christoph Lehmann
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 _

Re: [R] select cases

2005-04-19 Thread Dimitris Rizopoulos
ijnenvoer 35, Leuven, Belgium Tel: +32/16/336899 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.be/biostat/ http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm - Original Message - From: "Faouzi LYAZRHI" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 19, 2005 4:18

[R] select cases

2005-04-19 Thread Faouzi LYAZRHI
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-he