rowCum | R Documentation |
Compute cumulative row statistics.
## S4 method for signature 'ANY'
rowCumsums(x, na.rm = FALSE, ...)
## S4 method for signature 'timeSeries'
rowCumsums(x, na.rm = FALSE, ...)
x |
a time series, may be an object of class |
na.rm |
a logical. Should missing values be removed? |
... |
arguments to be passed. |
for the default method, a matrix,
for the "timeSeries"
method, an S4 object of class "timeSeries"
.
colCumXXX
## Simulated Monthly Return Data -
X = matrix(rnorm(24), ncol = 2)
## Compute cumulated Sums -
rowCumsums(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.