I have been creating lags for zoo objects using the following econ$gdp4 <- lag(econ$gdp, k = -4, na.pad = TRUE). I have about 6 columns in econ object that I want to create lags for and I want to create lags for periods 1 through 9. Is there a way to use a loop to create these?