Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

RowMeans

Form Row Sums and Means


Description

Form row sums and means for numeric arrays.

Usage

RowSums (x, ...)
RowMeans(x, ...)
## Default S3 method:
RowSums(x, ...)
## Default S3 method:
RowMeans(x, ...)
## S3 method for class 'tis'
RowSums(x, ...)
## S3 method for class 'tis'
RowMeans(x, ...)

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

Examples

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

tis

Time Indexes and Time Indexed Series

v1.38
Unlimited
Authors
Jeff Hallman <jeffhallman@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.