colSumsR Documentation

Form Row and Column Sums and Means

Description

Form row and column sums and means for numeric arrays.

Usage

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)

Arguments

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?

Value

a FlashR vector.

Examples

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)