summarize_groups | R Documentation |
Summarize groups of columns in a matrix
summarize_groups(x = NULL, groups = NULL, FUN = sparseMatrixStats::rowMeans2)
x |
A matrix-like object |
groups |
A factor of group labels equal to ncol(x) |
FUN |
A function to summarize columns (default value requires sparseMatrixStats) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.