aggregate_matrix | R Documentation |
Aggregate matrix over groups
aggregate_matrix(x, groups = NULL, fun = Matrix::colMeans)
groups |
A character vector with the groups to aggregate over. |
fun |
The aggregation function to be applied to each chunk of the matrix. |
A summary matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.