rowSums (x, ...) rowMeans(x, ...) ## S3 method for class 'default': rowSums(x, na.rm = FALSE, dims = 1, \dots) ## S3 method for class 'default': rowMeans(x, na.rm = FALSE, dims = 1, \dots) ## S3 method for class 'tis': rowSums(x, \dots) ## S3 method for class 'tis': rowMeans(x, \dots)
tistime indexed series
rowMeans.default, which are actually the versions of
basepackage. The ...argument is ignored in
NaN) be omitted from the calculations?
row*, the sum or mean is over dimensions
dims+1, ...; for
col*it is over dimensions
namesfor a vector result) are taken from the original array.
If there are no values in a range to be summed over (after removing
missing values with
na.rm = TRUE), that
component of the output is set to
rowMeans), consistent with
tis-specific methods also return a
FUN = meanor
FUN = sumwith appropriate margins, but are a lot faster. As they are written for speed, they blur over some of the subtleties of
na.rm = FALSEand either
NAappears in a sum, the result will be one of
NA, but which might be platform-dependent.
colSumsfor more details and examples.