Description Usage Arguments Value
Apply a function columnwise to groups of rows
1 | columnwise(f, mat, by, ...)
|
f |
Function |
mat |
Matrix |
by |
Factor of length |
... |
Arguments passed on to |
A matrix with ncol(mat)
columns and
length(unique(by)) * n
rows, where n
is the
length of the result returned by f
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.