Wrapper for tapply.

Tapply(.x, index, .f = NULL, ..., simplify = TRUE)



A vector.


List of one or more factors, each of same length as .x. The elements are coerced to factors by as.factor.


A function to be applied.


Optional arguments to .f.


If FALSE, tapply always returns an array of mode "list". If TRUE (the default), then if FUN always returns a scalar, tapply returns an array with the mode of the scalar.

See also

tapply for code and documentation.

Other functionals: Apply; Lapply; Mapply; Sapply; Vapply