fame (version 1.13)

RowMeans: Form Row Sums and Means

Description

Form row sums and means for numeric arrays.

Usage

RowSums (x, ...)
RowMeans(x, ...)
## S3 method for class 'default':
RowSums(x, \dots)
## S3 method for class 'default':
RowMeans(x, \dots)
## S3 method for class 'tis':
RowSums(x, \dots)
## S3 method for class 'tis':
RowMeans(x, \dots)

Arguments

x
an array of two or more dimensions, containing numeric, complex, integer or logical values, or a numeric data frame, or a tis time indexed series
...
arguments passed along to rowSums or rowMeans.

Value

  • The tis-specific methods return a tis.

    For other types of x, see rowMeans or rowSums.

See Also

rowMeans, and rowSums

Examples

Run this code
mat <- tis(matrix(1:36, ncol = 3), start = latestJanuary())
cbind(mat, rowSums(mat), rowMeans(mat))

Run the code above in your browser using DataLab