powered by
Functions to compute cumulative column statistics.
# S4 method for timeSeries colCumsums(x, na.rm = FALSE, ...)# S4 method for timeSeries colCummaxs(x, na.rm = FALSE, ...)# S4 method for timeSeries colCummins(x, na.rm = FALSE, ...)# S4 method for timeSeries colCumprods(x, na.rm = FALSE, ...)# S4 method for timeSeries colCumreturns(x, method = c("geometric", "simple"), na.rm = FALSE, ...)
# S4 method for timeSeries colCummaxs(x, na.rm = FALSE, ...)
# S4 method for timeSeries colCummins(x, na.rm = FALSE, ...)
# S4 method for timeSeries colCumprods(x, na.rm = FALSE, ...)
# S4 method for timeSeries colCumreturns(x, method = c("geometric", "simple"), na.rm = FALSE, ...)
all functions return an S4 object of class timeSeries.
timeSeries
a character string to indicate if geometric (TRUE) or simple (FALSE) returns should be computed.
a logical. Should missing values be removed?
a time series, may be an object of class "matrix", or "timeSeries".
"matrix"
"timeSeries"
arguments to be passed.
## Simulated Return Data - x = matrix(rnorm(24), ncol = 2) ## Cumulative Sums Column by Column - colCumsums(x)
Run the code above in your browser using DataLab