lag_list | R Documentation |
Create lagged terms
lag_list(x, lags, n_subset, n_shift)
x |
numeric vector - variable to lag |
lags |
integer vector - amount to lag |
n_subset |
take every n_subset rows |
n_shift |
shift values from starting on first row. Should be less than n_subset |
List of lagged terms
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.