Learn R Programming

timeSeries (version 4021.104)

rowCum: Cumulated Column Statistics

Description

Compute cumulative row Statistics.

Usage

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

Value

all functions return an S4 object of class timeSeries.

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.

Examples

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

Run the code above in your browser using DataLab