powered by
These are used in aggregating the chunks resulting from batch processing. They are usually called via do.call
do.call
ccbind(...) crbind(...) cfun(..., FUN, FUNARGS = list()) cquantile(..., probs = seq(0, 1, 0.25), na.rm = FALSE, names = TRUE, type = 7) csummary(..., na.rm = "ignored") cmedian(..., na.rm = FALSE) clength(..., na.rm = FALSE) csum(..., na.rm = FALSE) cmean(..., na.rm = FALSE)
depends on the CFUN used
...
a aggregating function
further arguments to the aggregating function
TRUE to remove NAs
see quantile
quantile
xx TODO: extend this for weighted means, weighted median etc., google "Re: [R] Weighted median"
Jens Oehlschlägel
ccbind
cbind
crbind
rbind
cfun
cquantile
csummary
summary
cmedian
median
clength
length
csum
sum
cmean
mean
In order to use CFUNs on the result of lapply or ffapply use do.call.
lapply
ffapply
ffapply, do.call, na.count
na.count
X <- lapply(split(rnorm(1000), 1:10), summary) do.call("crbind", X) do.call("csummary", X) do.call("cmean", X) do.call("cfun", c(X, list(FUN=mean, FUNARGS=list(na.rm=TRUE)))) rm(X)
Run the code above in your browser using DataLab