View source: R/explain_forecast.R
lag_data | R Documentation |
Lag a matrix of variables a specific number of lags for each variables.
lag_data(x, lags)
x |
The matrix of variables (one variable per column). |
lags |
A numeric vector denoting how many lags each variable should have. |
A list with two items
A matrix, lagged with the lagged data.
A list, group, with groupings of the lagged data per variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.