safeMatrixStats.Rd
Compute matrix statistics selecting the appropriate function depending on the matrix class of the input (supports sparse matrices and DelayedArrays)
safeMatrixStats(X, statFun = "rowSums", ...)
input matrix
statistic. E.g. "rowSums"
, "colSums"
, "rowMeans"
, "colMeans"
, ...
arguments passed on to the matrix stats function. E.g. na.rm
.
result of the corresponding matrix statistic