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


sccore documentation built on April 14, 2025, 1:08 a.m.