The plyr solution is:
library(plyr)
ddply(dfx, .(group, time), summarize, mean = mean(value), sd = sd(value))
Best,
Ista
On Wed, Aug 31, 2011 at 7:13 AM, Petr PIKAL wrote:
> Hi
>
>> Hi all,
>> I apologize for this probably stupid question, but I really can't figure
> it
>> out.
>> I have a dat
Hi
> Hi all,
> I apologize for this probably stupid question, but I really can't figure
it
> out.
> I have a dataframe like this:
>
> group <- c(rep('A', 8), rep('B', 15), rep('C', 6))
> time <- c(rep(seq(1:4), 2), rep(seq(1:5), 3), rep(seq(1:3), 2))
> value <- runif (29, 1, 10)
> dfx <- data.fr
2 matches
Mail list logo