colsums: Form Row and Column Sums and Means

Description Usage Arguments Value Author(s)

Description

Form Row and Column Sums and Means for madness objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'madness'
colSums(x, na.rm = FALSE, dims = 1)

## S4 method for signature 'madness'
colMeans(x, na.rm = FALSE, dims = 1)

## S4 method for signature 'madness'
rowSums(x, na.rm = FALSE, dims = 1)

## S4 method for signature 'madness'
rowMeans(x, na.rm = FALSE, dims = 1)

Arguments

x

madness object.

na.rm

logical. Should missing values (including NaN) be omitted from the calculations?

dims

integer: Which dimensions are regarded as ‘rows’ or ‘columns’ to sum over. For row*, the sum or mean is over dimensions dims+1, ...; for col* it is over dimensions 1:dims.

Value

a madness object. Note that the sums are flattened to a column vector.

Author(s)

Steven E. Pav shabbychef@gmail.com


shabbychef/madness documentation built on April 11, 2021, 11:03 p.m.