dif | R Documentation |
Returns lagged and differenced data where input and output are same length.
dif(x, lag = 1, differences = 1, ...)
x |
A numeric, time series, or xts variable. |
lag |
A number that represents the maximum lag order. |
differences |
Number of times data should be differenced. |
... |
Optional input arguments. |
Vector of data that is the sample length as input.
dif(rnorm(100), 1, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.