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
] 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
]
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
]
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
[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
: 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
: 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
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
: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
-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
@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
11 matches
Mail list logo