search for: vec_cat

Displaying 1 result from an estimated 1 matches for "vec_cat".

2013 Jan 17
3
how to use "..."
Dear users, I'm trying to learn how to use the "...". I have written a function (simplified here) that uses doBy::summaryBy(): # 'dat' is a data.frame from which the aggregation is computed # 'vec_cat' is a integer vector defining which columns of the data.frame should be use on the right side of the formula # 'stat_fun' is the function that will be run to aggregate stat.group <- function(dat, vec_cat, stat_fun){ require(doBy) df <- summaryBy(as.formula(paste0(&quot...