I do not think this is possible, but it should not be of much importance, because at this moment it is not an aggregation function. For instance:
#use summarize() in ddply() data.means <- ddply(data, .(groups), summarize, mean = mean(x), sd = sd(x), n = length(x)) data.means$se <- data.means$sd / sqrt(data.means$n) data.means$Upper <- data.means$mean + (data.means$SE * 1.96) data.means$Lower <- data.means$mean - (data.means$SE * 1.96)
So, I did not calculate SEs directly, but it was not so bad to calculate it outside of ddply() . If you really want to, you can also do
ddply(data, .(groups), summarize, se = sd(x) / sqrt(length(x)))
Or put it in terms of your example
ddply(df, .(col), summarize, col1=some_function(y), col2=some_other_function(y) col3=some_function(y)*some_other_function(y) )
source share