Learn R Programming

timeSeries (version 280.75)

rowCum: Cumulated Column Statistics

Description

Compute cumulative row Statistics.

Usage

## S3 method for class 'ANY':
rowCumsums(x, na.rm = FALSE, \dots)
## S3 method for class 'timeSeries':
rowCumsums(x, na.rm = FALSE, \dots)

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

Run this code
## Simulated Monthly Return Data:
   x = matrix(rnorm(24), ncol = 2)
     
## colStats -
   rowCumsums(x)

Run the code above in your browser using DataLab