get_lags | R Documentation |
From https://stackoverflow.com/questions/55814028/multiple-lags-with-dplyr
get_lags(data, ..., n = 2)
data |
Dataframe |
... |
Unquoted variable names to lag |
n |
Number of lags |
Dataframe with new lagged columns added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.