powered by
Create a vector of the lag of a variable and fill missing values with NA's.
lagpad(x, k = 1)
The lagged vector with NA's in missing values
A vector to be lagged
The number of lags to output