powered by
Take first difference of a series
dshift(x)
the differenced series
a series to be differenced
Soren Jordan and Andrew Q. Philips
dshift assumes that the series are ordered, that there is no missing data, and that the time intervals are even
dshift
x.var <- seq(0, 50, 5) d.x.var <- dshift(x.var) head(x.var) head(d.x.var)
Run the code above in your browser using DataLab