I have played around with dplyr a little and really like it. I am missing something though. In plyr, I was able to pass a functions to ddplyand reuse it.
library('dplyr') library('plyr') fn = function(df) { summarise(df, count = length(id)) } ddply(DF1,'group', fn) ddply(DF2,'group', fn) So I can apply a long list of recordings to multiple datasets without replicating all the arguments to summarise. In dplyr, however, I have to do this
dplyr::summarise(group_by(DF1,group), count = length(id)) dplyr::summarise(group_by(DF2,group), count = length(id)) So the arguments to summarise have to be repeated each time. A list of arguments with list('.data'=DF1,'count'=length(id)) and do.call does not work either because length(id) is evaluated when I define the argument list. Are there any solutions for this?