ts_transform | R Documentation |
This function performs a number of conditional treatments (see arguments) commonly useful for use in time series forecasting models.
ts_transform( data, y, stationary = TRUE, lags = 1:4, fill_down_na = TRUE, seasonal_dummies = TRUE )
data |
A tsibble object |
y |
Column name of the variable of interest |
stationary |
If |
lags |
Numeric vector indicating how many lags should be used to expand the data. |
fill_down_na |
If |
seasonal_dummies |
If |
A tsibble
df_macro <- get_data(quiet = TRUE) df_macro_augmented <- ts_transform(df_macro, "ipca")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.