In the R package reshape2
, does the dcast()
function parameter fun.aggregate= have the ability to accept parameters itself?
For instance:
dcast(dataFrame, x ~ y, value.var = 'z', fun.aggregate = mean(na.rm = TRUE))
I'm asking because I use my own function for the fun.aggregate parameter, and I'd rather not hard code the parameters into a growing list of functions.
This website is great; thanks everyone.