ts_decomposition: Time Series Decompositions

View source: R/ts_decomposition.R

ts_decompositionR Documentation

Time Series Decompositions

Description

If the trends data is longer than 3 years in length, function runs an STL decomposition on each series.

See Hyndman "Forecasting: Principles and Practice" https://otexts.com/fpp3/stlfeatures.html for details.

Usage

ts_decomposition(tbl, term)

Arguments

tbl

Data frame returned by Google Trends API

term

Keyword to focus on for decompositions

Value

List of graphs - STL decomposition; Seasonally adjusted plot; Seasonality v Trend

Examples

## Not run: 
decomp(tbl, directory, project)
## End(Not run)

taylorgrant/GSPtrends documentation built on Sept. 14, 2024, 5:43 p.m.