seasonal_features: Generate trend and seasonal components for regression based...

Description Usage Arguments Value Examples

View source: R/feature_engineering.R

Description

Generate trend and seasonal components for regression based models

Usage

1
2
3
4
5
6
seasonal_features(
  .data,
  freq = .log$prescription$freq,
  numeric_seas = FALSE,
  hierarchy_seas = FALSE
)

Arguments

.data

data-frame or tibble

freq

Numeric. Time series frequency

numeric_seas

logical: whether or not to print numberic seasonal variables instead of factor.

hierarchy_seas

logical: whether or not to provide higher aggregation levels. For instance, a time series of weekly frequency will generate besides week_seas, also month_seas, and year_seas.

Value

data-frame or tibble

Examples

1
2
3
4
## Not run: 
get_design_matrix()

## End(Not run)

opoyc/autoforecast documentation built on May 18, 2021, 1:29 a.m.