Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

methods-mathOps

Mathematical Time Series Operations


Description

Functions and methods dealing with mathematical 'timeSeries' operations.

Usage

## 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

## 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

timeSeries

Financial Time Series Objects (Rmetrics)

v3062.100
GPL (>= 2)
Authors
Diethelm Wuertz [aut] (original code), Tobias Setz [cre], Yohan Chalabi [ctb], Martin Maechler [ctb] (<https://orcid.org/0000-0002-8685-9910>)
Initial release
2020-01-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.