lag_diff | R Documentation |
The function returns a vector of lagged difference values using diff
with initial padding
lag_diff(x, lag)
x |
vector or matrix of numeric values. In the case of a matrix, the rows indicate the time-varying observations. |
lag |
the lag value (numeric) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.