[R] subsets in data frame
Laura Holt
lauraholt_983 at hotmail.com
Wed Jul 14 05:13:15 CEST 2004
Hello R People:
I have a data frame with 2 numeric variables and 1 factor.
There are 3 levels of the factor.
I would like to get sums/means/etc of the numeric variables with respect to
the factor level.
I tried "table" and "subset" but have not hit upon a solution.
I thought maybe "apply" would be the answer but can't figure out how to
break out by factor.
Any suggestions would be most appreciated.
Thanks yet again.
R Version 1.9.1 for windows
Sincerely,
Laura Holt
mailto: lauraholt_983 at hotmail.com
your life. http://lifeevents.msn.com
More information about the R-help
mailing list