colSumByFactor | R Documentation |
Calculates factor-stratified sums for each column
colSumByFactor(sY, rowSel)
sY |
sparse matrix (dgCmatrix) |
rowSel |
integer factor. Note that the 0-th column will return sums for any NA values; 0 or negative values will be omitted |
Matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.