R: Calculates factor-stratified sums for each column

colSumByFactor {sccore} | R Documentation

## Calculates factor-stratified sums for each column

### Description

Calculates factor-stratified sums for each column

### Usage

    colSumByFactor(sY, rowSel)

### Arguments

`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

### Value

Matrix

[Package sccore version 1.0.1 Index]