sapply {applys} |
R Documentation |
Apply a Function over a List or Vector
Description
sapply is a user-friendly version and wrapper of lapply by default
returning a vector, matrix or, if simplify = "array", an array
if appropriate, by applying simplify2array(). sapply(x, f, simplify
= FALSE, USE.NAMES = FALSE) is the same as lapply(x, f).
Usage
Arguments
X
a vector (atomic or list) or an expression object. Other objects
(including classed objects) will be coerced by base::as.list
.
FUN
the Function to be applied To Each element Of X: see 'Details’.
In the case of functions like +, %*%, the function name must be
backquoted or quoted.
envir
[as Environment]
Details
Authors
SMRUCC genomics Institute
Value
this function returns data object of type
vector.
clr value class
Examples
[Package
applys version 2.33.856.6961
Index]