ts_season: Seasonality Extraction function

Description Usage Arguments Author(s) See Also Examples

View source: R/ts_season.R

Description

Extracts and plot the seasonality component of a time series

Usage

1
ts_season(x, plot = TRUE, random = TRUE)

Arguments

x

A list returned by ts_trend().

plot

Whether to plot or not the seasonal component. Defaults to TRUE.

random

Whether to calculate random component or not

Author(s)

David Alberto Mateos Montes de Oca.

See Also

decompose().

Examples

1
2
3
 s <- AirPassengers
 x <- ts_trend(s)
 ts_season(x)

alberto-mateos-mo/tsextras documentation built on Feb. 3, 2020, 12:03 a.m.