Description Usage Arguments Value
A more efficient implementation of base::diff(x, lag = 1, differences = 1).
1 | Diff(x)
|
x |
a numeric vector containing the values to be differenced. |
A vector of length(x)
, the first value being 0. This behaviour
differs from diff
, where the length would be
length(x) - 1
(omitting the zero).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.