adjacentDifferences: Calculate adjacent differences in a vector

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

All differences between adjacent elements in a vector

Usage

1

Arguments

x

Armadillo vector with numeric element

Value

Armadillo vector with the adjacent differences

Author(s)

Roberto Maestre

Examples

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)

rmaestre/variableStars documentation built on April 11, 2020, 11:10 p.m.