Scaler: Take logs and differences of a time series

Description Usage Arguments Details Author(s) Examples

View source: R/Scaler.R

Description

Logarithmise and / or difference a time series

Usage

1
Scaler(x, Diff = 0, Sdiff = 0, Log = FALSE)

Arguments

x

time series

Diff

number of differences to be taken

Sdiff

number of seasonal differences to be taken

Log

Should time series be logarithmised

Details

Function is used in dsa to let the user decide whether logs and differences should be taken.

Author(s)

Daniel Ollech

Examples

1
2
a = ts(rnorm(100, 100, 10), start=c(2015,1), frequency=12)
Scaler(a, Diff=1, Log=TRUE)

dsa documentation built on June 21, 2021, 9:07 a.m.