Description Usage Arguments Details
These are thin but clearer wrappers to
apply(x, 1, FUN, ...)
(row apply) and
apply(x, 2, FUN, ...)
(column apply).
Intended for use with 2D R matrix
s.
We do a bit more work to ensure row names,
column names are passed along if appropriate.
1 2 3 |
X |
A matrix, or a 2D array. |
FUN |
The function to be applied. |
... |
Optional arguments to |
drop |
Boolean. If |
See apply
for more info.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.