Form Row and Column Sums and Means for madness objects.
# S4 method for madness
colSums(x, na.rm = FALSE, dims = 1)# S4 method for madness
colMeans(x, na.rm = FALSE, dims = 1)
# S4 method for madness
rowSums(x, na.rm = FALSE, dims = 1)
# S4 method for madness
rowMeans(x, na.rm = FALSE, dims = 1)
a madness object. Note that the sums are flattened to a
column vector.
madness object.
logical. Should missing values (including NaN)
be omitted from the calculations?
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.
Steven E. Pav shabbychef@gmail.com