[R] multiple tapply

glaporta glaporta at freeweb.org
Thu Aug 7 13:01:44 CEST 2008


Hi folk,
I tried this and it works just perfectly
tapply(iris[,1],iris[5],mean)
but, how to obtain a single table from multiple variables? 
In tapply x is an atomic object so this code doesn't work 
tapply(iris[,1:4],iris[5],mean)

Thanx and great summer holidays
Gianandrea 
-- 
View this message in context: http://www.nabble.com/multiple-tapply-tp18868063p18868063.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list