dshift | R Documentation |
Take first difference of a series
dshift(x)
x |
a series to be differenced |
dshift
assumes that the series are ordered, that there is no missing data, and that the time intervals are even
the differenced series
Soren Jordan and Andrew Q. Philips
x.var <- seq(0, 50, 5) d.x.var <- dshift(x.var) head(x.var) head(d.x.var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.