Wrapper for sapply.

Sapply(.x, .f, ..., simplify = TRUE, use_names = TRUE)

Arguments

.x

A vector.

.f

A function to be applied.

...

Optional arguments to f.

simplify

Logical or character string; should the result be simplified to a vector, matrix or higher dimensional array if possible?

use_names

Logical; if TRUE and if .x is character, use .x as names for the result unless it had names already.

See also

sapply for code and documentation.

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