colSumByFactor: Calculates factor-stratified sums for each column

View source: R/RcppExports.R

colSumByFactorR 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


hms-dbmi/sccore documentation built on Feb. 26, 2024, 5:06 p.m.