colSums | R Documentation |
Form row and column sums and means for numeric arrays.
fm.rowSums(x, lazy = FALSE) fm.colSums(x, lazy = FALSE) ## S4 method for signature 'fm' rowSums(x, na.rm) ## S4 method for signature 'fm' colSums(x, na.rm) ## S4 method for signature 'fm' rowMeans(x, na.rm) ## S4 method for signature 'fm' colMeans(x, na.rm)
x |
a FlashR matrix. |
lazy |
logical. indicates whether to evaluate the expression lazily. |
na.rm |
logical. Should missing values (including NaN) be omitted from the calculations? |
a FlashR vector.
mat <- fm.runif.matrix(100, 10) mat <- fm.rowSums(mat) mat <- fm.colSums(mat) mat <- rowSums(mat) mat <- colSums(mat) mat <- rowMeans(mat) mat <- colMeans(mat)