colMeansByGroups | R Documentation |
Calculate column averages in row groups
colMeansByGroups(m, groups)
m |
matrix n x m |
groups |
vector of size n of numbers from 1 to k |
matrix k*m of column averages by groups
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.