clapply | R Documentation |
lapply
Use lapply
if the input is a list and otherwise apply the
function directly to the input and wrap the result in a list.
The function is implemented as
if (is.list(X)) lapply(X, FUN, ...) else list(FUN(X, ...))
clapply(X, FUN, ...)
X |
a list or a single |
FUN |
the function to be applied to (each element of) |
... |
optional arguments to |
a list (of length 1 if X
is not a list).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.