Description Usage Arguments Value Examples
Sapply
is equivalent to sapply
, except
that it preserves the dimension and dimension names of the
argument X
. It also preserves the dimension of
results of the function FUN
.
It is intended for application to results e.g.
of a call to by
. Lapply
is an analog
to lapply
insofar as it does not try to simplify
the resulting list
of results of FUN
.
1 2 3 |
X |
a vector or list appropriate to a call to |
FUN |
a function. |
... |
optional arguments to |
simplify |
a logical value; should the result be simplified to a vector or matrix if possible? |
USE.NAMES |
logical; if |
If FUN
returns a scalar, then the result has the same dimension
as X
, otherwise the dimension of the result is enhanced relative
to X
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.