safeMatrixStats: safeMatrixStats

Description Usage Arguments Value Author(s)

View source: R/utils.R

Description

Compute matrix statistics selecting the appropriate function depending on the matrix class of the input (supports sparse matrices and DelayedArrays)

Usage

1
safeMatrixStats(X, statFun = "rowSums", ...)

Arguments

X

input matrix

statFun

statistic. E.g. "rowSums", "colSums", "rowMeans", "colMeans", ...

...

arguments passed on to the matrix stats function. E.g. na.rm.

Value

result of the corresponding matrix statistic

Author(s)

Fabian Mueller


demuellae/ChrAccR documentation built on Jan. 20, 2020, 3:03 a.m.