ts_arithmetic {tsbox} | R Documentation |
Arithmetic Operators for ts-boxable objects
Description
Arithmetic Operators for ts-boxable objects
Usage
e1 %ts+% e2
e1 %ts-% e2
e1 %ts*% e2
e1 %ts/% e2
Arguments
e1 |
ts-boxable time series, an object of class |
e2 |
ts-boxable time series, an object of class |
Value
a ts-boxable time series, with the same class as the left input.
Examples
head(fdeaths - mdeaths)
head(fdeaths %ts-% mdeaths)
head(ts_df(fdeaths) %ts-% mdeaths)
[Package tsbox version 0.4.1 Index]