diff2 | R Documentation |
Computes the lagged and iterated differences.
diff2(x, idxs = NULL, lag = 1L, differences = 1L, ..., useNames = TRUE)
x |
A |
idxs |
A |
lag |
An |
differences |
An |
... |
Not used. |
useNames |
If |
Returns a numeric
vector
of
length N - differences
.
Henrik Bengtsson
diff
().
diff2(1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.