Description Usage Arguments Value Examples
L
shifts the values in an xts
time series by the specified
number of lags. The function extends the lag
function by allowing
users to specify a frequency with which to lag the variable.
1 |
x |
'xts' time series variable |
lag |
numeric or character value indicating the number of periods to
lag x. Defaults to one lag. Character inputs indicate the type of time
period to lag. |
new 'xts' object shifted by the lag
number of periods.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.