Re: [R] summarizing replicates with multiple treatments

2008-03-04 Thread Levi Waldron
On Tue, Mar 4, 2008 at 5:32 PM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Try this: > > library(doBy) > summaryBy(. ~ day + treat, exampledata, FUN = c(mean, sd)) Outstanding, so much better. Thanks. __ R-help@r-project.org mailing list https:/

Re: [R] summarizing replicates with multiple treatments

2008-03-04 Thread Gabor Grothendieck
Try this: library(doBy) summaryBy(. ~ day + treat, exampledata, FUN = c(mean, sd)) On Tue, Mar 4, 2008 at 5:24 PM, Levi Waldron <[EMAIL PROTECTED]> wrote: > I have a dataframe with several different treatment variables, and > would like to calculate the mean and standard deviation of the > repli

[R] summarizing replicates with multiple treatments

2008-03-04 Thread Levi Waldron
I have a dataframe with several different treatment variables, and would like to calculate the mean and standard deviation of the replicates for each day and treatment variable. It seems like it should be easy, but I've only managed to do it for one treatment at a time using subset and tapply. He