[R] By processing on two variables at once?
zwarren
zack.warren at yahoo.com
Thu Nov 12 02:51:50 CET 2009
Hello!
I'm trying to runs stats on two vars at a time in a big data frame. I knew
how to do this in SAS many years ago, but have half-forgotten that as well!
I need, for instance, mean(value) by x-y combination:
x y z value
1 1 1 10
1 1 2 20
1 2 1 30
with results:
x y mean(value)
1 1 15
1 2 30
Any help?
Thanks,
~Zack
--
View this message in context: http://old.nabble.com/By-processing-on-two-variables-at-once--tp26312115p26312115.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list