lapply {applys} |
R Documentation |
Apply a Function over a List or Vector
Description
lapply returns a list of the same length as X, each element of
which is the result of applying FUN to the corresponding
element of X.
Usage
lapply(X, FUN,
names = NULL);
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. and optional index of function secondary
parameter, start from base 1.
envir
[as Environment]
Details
Authors
SMRUCC genomics Institute
Value
this function returns data object of type
any kind.
clr value class
Examples
[Package
applys version 2.33.856.6961
Index]