do_difference | R Documentation |
Do first-order and seasonal differencing (go from original time series to differenced time series).
do_difference(y, d = 0, D = 0, frequency = 1)
y |
a univariate time series or numeric vector. |
d |
order of first differencing |
D |
order of seasonal differencing |
frequency |
frequency of time series. Must be provided if y is not of class "ts" and D > 0. See the help for stats::ts for more. |
a differenced time series object (of class 'ts'), padded with leading NAs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.