Description Usage Arguments Value Author(s) Examples
All differences between adjacent elements in a vector
1 |
x |
Armadillo vector with numeric element |
Armadillo vector with the adjacent differences
Roberto Maestre
1 2 3 4 5 6 7 | ## Not run:
# simple call: All adjacent elements has the same length 1
adjacentDifferences(c(1,2,3,4,5))
# simple call: There are positive and negative diffferences
adjacentDifferences(c(1,2,0,14,-2))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.