[R] subsetting a data set

2006-09-08 Thread Graham Smith
I have a data set called GQ1, which has 20 variables one of which is a factor called Status at thre levels Expert, Ecol and Stake I have managed to evaluate some of the data split by status using commands like: summary (Max[Status==Ecol]) BUT how do I produce asummary for Ecol and Expert

Re: [R] subsetting a data set

2006-09-08 Thread Petr Pikal
] subsetting a data set I have a data set called GQ1, which has 20 variables one of which is a factor called Status at thre levels Expert, Ecol and Stake I have managed to evaluate some of the data split by status using commands like: summary (Max[Status==Ecol]) BUT how do I produce

Re: [R] subsetting a data set

2006-09-08 Thread Graham Smith
] To: r-help@stat.math.ethz.ch Subject:[R] subsetting a data set I have a data set called GQ1, which has 20 variables one of which is a factor called Status at thre levels Expert, Ecol and Stake I have managed to evaluate some of the data split by status using commands like

Re: [R] subsetting a data set

2006-09-08 Thread Petr Pikal
] To: Graham Smith [EMAIL PROTECTED], r-help@stat.math.ethz.ch Date sent: Fri, 08 Sep 2006 10:31:12 +0200 Priority: normal Subject:Re: [R] subsetting a data set Hi I am not sure if your Max is the same as max so I am not sure what you exactly want from

Re: [R] subsetting a data set

2006-09-08 Thread Petr Pikal
[EMAIL PROTECTED] To: Petr Pikal [EMAIL PROTECTED] Copies to: r-help@stat.math.ethz.ch Subject:Re: [R] subsetting a data set Petr, Thanks I shall have at look at these options. Sorry about the confusion with the Max, in my example Max

Re: [R] subsetting a data set

2006-09-08 Thread Graham Smith
: Petr Pikal [EMAIL PROTECTED] To: Graham Smith [EMAIL PROTECTED], r-help@stat.math.ethz.ch Date sent: Fri, 08 Sep 2006 10:31:12 +0200 Priority: normal Subject:Re: [R] subsetting a data set Hi I am not sure if your Max

Re: [R] subsetting a data set

2006-09-08 Thread Sean O'Riordain
: Fri, 08 Sep 2006 10:31:12 +0200 Priority: normal Subject:Re: [R] subsetting a data set Hi I am not sure if your Max is the same as max so I am not sure what you exactly want from your data. However you shall consult ?tapply, ?by, ?aggregate

Re: [R] subsetting a data set

2006-09-08 Thread Graham Smith
PROTECTED] To: Graham Smith [EMAIL PROTECTED], r-help@stat.math.ethz.ch Date sent: Fri, 08 Sep 2006 10:31:12 +0200 Priority: normal Subject:Re: [R] subsetting a data set Hi I am not sure if your Max

Re: [R] subsetting a data set

2006-09-08 Thread Petr Pikal
:12 +0200 Priority: normal Subject:Re: [R] subsetting a data set Hi I am not sure if your Max is the same as max so I am not sure what you exactly want from your data. However you shall consult ?tapply, ?by, ?aggregate and maybe also ?[ together

Re: [R] subsetting a data set

2006-09-08 Thread Graham Smith
-help@stat.math.ethz.ch Date sent: Fri, 08 Sep 2006 10:31:12 +0200 Priority: normal Subject:Re: [R] subsetting a data set Hi I am not sure if your Max is the same as max so I am not sure what you exactly want from your data. However

Re: [R] subsetting a data set

2006-09-08 Thread Graham Smith
@stat.math.ethz.ch Subject:Re: [R] subsetting a data set Petr, Thanks again, but the data is GQ1, Max is a variable (column) So I have used by(GQ1[,Max], list(GQ1$Status), summary) Which is very good, and is better than the way I did it before by summarising