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'.
lapply(x, FUN, ...)
# S3 method for default
lapply(x, FUN, keep.attr = FALSE, ...)
A list-like or vector-like object
See ?base::lapply
for a description of
these arguments.
Logic. If TRUE, then the original attributes from 'x' are preserved in the returned list. Default is FALSE.
Same as in ?base::lapply
if keep.attr = FALSE.
Otherwise same values preserving original attributes from 'x'.
base::lapply