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

cumsum

Cumulative Sums, Products, and Extremes


Description

Return a tis whose elements are the cumulative sums, products, minima or maxima of the elements of the argument.

Usage

## S3 method for class 'tis'
cumsum(x)
## S3 method for class 'tis'
cumprod(x)
## S3 method for class 'tis'
cummax(x)
## S3 method for class 'tis'
cummin(x)

Arguments

x

a tis series.

Details

These are tis methods for generic functions.

Value

A tis like x. An NA value in x causes the corresponding and following elements of the return value to be NA, as does integer overflow in cumsum (with a warning).

See Also


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.