powered by
Lagging by shifting the values back or fourth always returning a data.list.
lagdl(DL, lagseq)
A data.list.
The data.list to be lagged.
The integer(s) setting the lag steps.
This function lags (shifts) the values of the vector. A data.list is always returned with each data.frame lagged with lagdf.
lagdf
# The values are simply shifted in each data.frame with lagdf
Run the code above in your browser using DataLab