statistics-rowCumsums: Cumulative row statistics

rowCumR Documentation

Cumulative row 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

x

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

na.rm

a logical. Should missing values be removed?

...

arguments to be passed.

Value

for the default method, a matrix,

for the "timeSeries" method, an S4 object of class "timeSeries".

See Also

colCumXXX

Examples

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

timeSeries documentation built on Sept. 30, 2024, 9:15 a.m.