sp_sums_Rcpp {DR.SC} | R Documentation |
Calculate column-wise or row-wise sum
Description
Calculate column-wise or row-wise sum
Usage
sp_sums_Rcpp(sp_data, rowSums = FALSE)
Arguments
sp_data |
A sparse matrix |
rowSums |
A boolean value, whether to calculate row-wise sum |
Value
A n x 1 or p x 1 matrix
[Package DR.SC version 3.4 Index]