Learn R Programming

sccore (version 1.0.6)

colSumByFactor: Calculates factor-stratified sums for each column

Description

Calculates factor-stratified sums for each column

Usage

colSumByFactor(sY, rowSel)

Value

Matrix

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