applyOverColumnGroups | R Documentation |
Returns a array obtained by applying a function to rows of submatrices of the input matrix, where the submatrices are divided into specified groups of columns.
applyOverColumnGroups(mat, groups, f, ...)
mat |
a matrix. |
groups |
a vector giving columns grouping. |
f |
function to be applied. |
... |
optional arguments to |
a matrix of dimensions nrow(mat) x nlevels(groups)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.