magclass (version 4.107.0)

rowSums-methods: ~~ Methods for Function rowSums and rowMeans ~~

Description

~~ Methods for function rowSums and rowMeans~~

Usage

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

Arguments

x

object on which calculation should be performed

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.

...

further arguments passed to other colSums/colMeans methods

Methods

list("signature(x = \"ANY\")")

normal rowSums and rowMeans method

list("signature(x = \"magpie\")")

classical method prepared to handle MAgPIE objects