ts_pc: First Differences and Percentage Change Rates

Description Usage Arguments Value Examples

View source: R/ts_pc.R

Description

ts_pcy and ts_diffy calculate the percentage change rate and the difference compared to the previous period, ts_pcy and ts_diffy calculate compared to the same period of the previous year.

Usage

1
2
3
4
5
6
7

Arguments

x

ts-boxable time series, an object of class ts, xts, zoo, data.frame, data.table, tbl, tbl_ts, tbl_time, or timeSeries.

Value

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

Examples

1
2
3
4

christophsax/tsbox documentation built on June 26, 2018, 1:13 p.m.