decompose_ts: Decompose a time series object into trend, seasonal and...

Description Usage Arguments Value Examples

Description

This is a function to decompose a time series object. The time series object is decomposed into trend, seasonal and remainder. Remainder is the ts minus the trend and seasonal. As input is only required an object from the class time series. Otherwise the function returns an error message. The code is adopted from Hyndman, Rob J. which provides him under: https://robjhyndman.com/hyndsight/tscharacteristics/

Usage

1

Arguments

ts

A time series object.

transform

A boolean to enable BoxCox transformation.

Value

A list of the decomposed ts. If the input is not a ts, an error message is returned. The list consist of the ts, the trend of the ts, the seasonal of the ts and the remainder of the ts.

Examples

1

mowomoyela/tstaxonomyr documentation built on May 15, 2019, 4:47 p.m.