Skip to content
Prev 245777 / 398502 Next

What is the best way to lag a time series?

First off, there are data manipulation
techniques that will beat doing it in
a spreadsheet.  For example:

head(x, -1)

is lagged 1 relative to

tail(x, -1)

But I think you are really looking for
'Lag' in the 'quantmod' package.
On 26/12/2010 07:49, Christian Schoder wrote: