Mathematical Time Series Operations

Share:

Description

Functions and methods dealing with mathematical 'timeSeries' operations.

Usage

1
2
## S4 method for signature 'timeSeries'
quantile(x, ...)

Arguments

x

an object of class timeSeries.

...

arguments to be passed.

Details

The math functions include:

Ops-method Group 'Ops' methods for a 'timeSeries' object
Math-method Group 'Math' methods for a 'timeSeries' object
Math2-method Group 'Math2' methods for a 'timeSeries' object
Summary-method Group 'Summary' methods for a 'timeSeries' object
quantile Returns quantiles of an univariate 'timeSeries'.

Value

Returns the value from a mathematical or logical operation operating on objects of class 'timeSeries[], or the value computed by a mathematical function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Create an Artificial timeSeries Object - 
   setRmetricsOptions(myFinCenter = "GMT")
   charvec = timeCalendar()
   set.seed(4711)
   data = matrix(exp(cumsum(rnorm(12, sd = 0.1))))
   TS = timeSeries(data, charvec, units = "TS")
   TS

## Mathematical Operations: | +/- * ^ ... - 
   TS^2
   TS[2:4]
   OR = returns(TS)
   OR
   OR > 0

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.