Cumulated Column Statistics

Share:

Description

Compute cumulative row Statistics.

Usage

1
2
3
4
## 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

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.