There are several depending on what specifically you want to do. Some of the things to look at include: tapply, aggregate, the plyr package.
-- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [email protected] 801.408.8111 > -----Original Message----- > From: [email protected] [mailto:r-help-boun...@r- > project.org] On Behalf Of jose romero > Sent: Friday, February 12, 2010 10:24 AM > To: [email protected] > Subject: [R] summary statistics for grouped data > > Hello list: > > Is there an easy way (preferably through one of the standard R > packages) of obtaining summary statistics for grouped data? I could > split the data into classes by hist, and then progressively calculate > all the "columns" i need to obtain the mean and standard deviation, but > i was looking for a single function that could do that with a data > vector. > > Thanks in advance, > > jose romero > > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

