[R] Summary Statistics for data.frame

From: justin rapp <jdrapp_at_gmail.com>
Date: Sun 09 Jul 2006 - 05:44:48 EST


I apologize for my constant questions but I am new to R and trying to gain an appreciation for its capabilities. The following task is easy in Excel and I was hoping somebody could give me a quick explanation for how it can be acheived in R so I can avoid having to switch between the two applications.

How do I find the Summary Statistics in one Vector of the dataframe by levels in another of the vectors.

For example, I have the following headings for my data.frame. Conference
Year Drafted
Height
Weight
Ratio

I would like to see compute the mean Height, Weight, and Ratio as well as their variances for each of the years under Year Drafted(1980-2000). What is the most efficient way of doing this?

Thank you.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Jul 09 05:48:48 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 09 Jul 2006 - 06:16:32 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.