[R] tapply for function taking of >1 argument?

David Freedman 3.14david at gmail.com
Wed Feb 3 18:06:37 CET 2010


also, 

library(plyr)
ddply(d,~grp,function(df) weighted.mean(df$x,df$w))
-- 
View this message in context: http://n4.nabble.com/tapply-for-function-taking-of-1-argument-tp1460392p1461428.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list