rowCum {fSeries}R Documentation

Cumulated Column Statistics

Description

Functions to compute cumulative row Statistics.

Usage

## Default S3 method:
rowCumsums(x, na.rm = FALSE, ...)
## S3 method for class 'timeSeries':
rowCumsums(x, na.rm = FALSE, ...)
## S3 method for class 'zoo':
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", "timeSeries", or "zoo".
... arguments to be passed.

Value

all functions return an S4 object of class timeSeries.

Note

The methods for the "zoo" methods are still preliminary and untested. na.rm is not yet supported in all case, please test.

Author(s)

Diethelm Wuertz for the Rmetrics R-port.

Examples

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

[Package fSeries version 260.73 Index]