ts_arithmetic: Arithmetic Operators for ts-boxable objects

Description Usage Arguments Value Examples

View source: R/ts_arithmetic.R

Description

Arithmetic Operators for ts-boxable objects

Usage

1
2
3
4
5
6
7
e1 %ts+% e2

e1 %ts-% e2

e1 %ts*% e2

e1 %ts/% e2

Arguments

e1

ts-boxable time series, an object of class ts, xts, data.frame, data.table, or tibble.

e2

ts-boxable time series, an object of class ts, xts, data.frame, data.table, or tibble.

Value

a ts-boxable time series, with the same class as the left input.

Examples

1
2
3

Example output

sh: 1: cannot create /dev/null: Permission denied
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") : cannot open file '/etc/timezone': Permission denied
Warning: Your system is mis-configured: '/etc/localtime' is not a symlink
sh: 1: cannot create /dev/null: Permission denied
Warning message:
In fun(libname, pkgname) : No TZ information found. Falling back to UTC.
[1] -1233 -1174 -1050 -1200  -970  -843
[1] -1233 -1174 -1050 -1200  -970  -843
        time value
1 1974-01-01 -1233
2 1974-02-01 -1174
3 1974-03-01 -1050
4 1974-04-01 -1200
5 1974-05-01  -970
6 1974-06-01  -843

tsbox documentation built on April 30, 2020, 1:05 a.m.