[R] Help with "by"

AllenL allen.larocque at gmail.com
Sat Apr 4 21:42:39 CEST 2009


Searched for "by" in forums and no hits, should be simple problem.

This is my line:
>bio.mean<-by(Data,Plot, function(x) mean(AbvBioAnnProd))

I want to calculate the mean of "AbvBioAnnProd" in each Plot. What am I
doing wrong?

Thanks in advance,
-AL

-- 
View this message in context: http://www.nabble.com/Help-with-%22by%22-tp22887127p22887127.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list