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

statistics-rowCumsums

Cumulated Column Statistics


Description

Compute cumulative row Statistics.

Usage

## S4 method for signature 'ANY'
rowCumsums(x, na.rm = FALSE, ...)
## S4 method for signature 'timeSeries'
rowCumsums(x, na.rm = FALSE, ...)

Arguments

na.rm

a logical. Should missing values be removed?

x

a time series, may be an object of class "matrix" or "timeSeries".

...

arguments to be passed.

Value

all functions return an S4 object of class timeSeries.

Examples

## Simulated Monthly Return Data - 
   X = matrix(rnorm(24), ncol = 2)
     
## Compute cumulated Sums -
   rowCumsums(X)

timeSeries

Financial Time Series Objects (Rmetrics)

v3062.100
GPL (>= 2)
Authors
Diethelm Wuertz [aut] (original code), Tobias Setz [cre], Yohan Chalabi [ctb], Martin Maechler [ctb] (<https://orcid.org/0000-0002-8685-9910>)
Initial release
2020-01-24

We don't support your browser anymore

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