Description Usage Arguments Value
View source: R/data_preparation.R
A function to create 1 through n lags of a set of variables. Is used as a data preparation helper function and is called internally by forecast_univariate, forecast_multivariate, and forecast_combine.
1 |
Data |
data.frame: data frame of variables to lag and a 'date' column |
lags |
int: number of lags to create |
variables |
string: vector of variable names to lag, default is all non-date variables |
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.