tapply
functions; that is, functions you would like to apply split
over some grouping variable. Note that we restrict
ourselves to the case where we return a scalar as output;
rather than the more general output of tapply.
rcpp_tapply_generator(fun, includes = NULL, depends = NULL, inline = TRUE, returnType = "double", name = NULL, file = NULL, additional = NULL)
Rcpp_tapply_generator(fun, includes = NULL, depends = NULL, inline = TRUE, returnType = "double", name = NULL, file = NULL, additional = NULL)x.boost/math.hpp, you could pass
c("") . Rcpp is included by
default, unless RcppArmadillo is included as well (since
Rcpp is included as part of the RcppArmadillo include)double, int, or bool.tempfile().fun.tapply: when simplify=TRUE, we call
unlist on the output; hence, a named vector is
returned.