tapply() function in R

tapply()
Apply a function to each cell of a ragged array, that is to each (non-empty) group of values given by a unique combination of the levels of certain factors.
Usage
tapply(X, INDEX, FUN = NULL, …, default = NA, simplify = TRUE)

Leave a Reply