View source: R/helperFunctions.R
Take means over columns in a matrix, by grouping all columns listed in poplist e.g. if mat is M*N matrix and poplist is length K, returns a M*K matrix the names of poplist are used to assign names to the returned matrix
1 | matColMeans(mat, poplist)
|
mat |
A matrix |
poplist |
list of which members of the original mat are in each of the new columns |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.