Re: [R] summary with variance / sd

2009-01-11 Thread David Winsemius
On Jan 11, 2009, at 4:38 PM, Jörg Groß wrote: Hi, I have a data frame and would like to have summary statistics for grouped data. With summary() I get the central tendencies for the overall data. How can I get descriptive statistics with variances and standard deviations? In the futu

Re: [R] summary with variance / sd

2009-01-11 Thread Søren Højsgaard
You can use summaryBy() in the doBy package: summaryBy(y+x~group, data=mydata, FUN=c(mean,sd)) Søren Fra: r-help-boun...@r-project.org på vegne af Jörg Groß Sendt: sø 11-01-2009 22:38 Til: r-help@r-project.org Emne: [R] summary with variance / sd Hi, I

Re: [R] summary with variance / sd

2009-01-11 Thread Stephan Kolassa
Hi Jörg, ?by here probably something like by(data=mydata,INDICES=mydata$group, FUN=sd, ...) HTH, Stephan Jörg Groß schrieb: Hi, I have a data frame and would like to have summary statistics for grouped data. With summary() I get the central tendencies for the overall data. How can I g

[R] summary with variance / sd

2009-01-11 Thread Jörg Groß
Hi, I have a data frame and would like to have summary statistics for grouped data. With summary() I get the central tendencies for the overall data. How can I get descriptive statistics with variances and standard deviations? for example my data.frame: group x y exp