Description Usage Arguments Value
View source: R/helperFunctions.R
Sums 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 | matColSums(mat, poplist)
|
mat |
A matrix of dimension M by N |
poplist |
list of which members (column identifiers) of the original mat are in each of the new columns, as returned by |
A matrix on dimension M by K.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.