powered by
Wrapper for `diff()` maintaining the same number of observations in `x`
Diff(x, lag = 1)
data
number of lags to use
Differenced data
# NOT RUN { Diff(c(100,50,100,20,100,110)) # }
Run the code above in your browser using DataLab