Lagging Variables in R.
Lagging Variables in R [link]Paper  abstract   bibtex   
What is the most efficient way to make a matrix of lagged variables in R for an arbitrary variable (i.e. not a regular time series) for example: input: x <- c(1,2,3,4) 2 lags output: [1,NA, NA...
@misc{_lagging_????,
	title = {Lagging {Variables} in {R}},
	url = {http://stackoverflow.com/questions/1311920/lagging-variables-in-r},
	abstract = {What is the most efficient way to make a matrix of lagged variables in R for an arbitrary variable (i.e. not a regular time series)

for example:
input:
x \&lt;- c(1,2,3,4) 
2 lags
output:
[1,NA, NA...},
	urldate = {2013-10-27TZ}
}

Downloads: 0