diff.dfts | R Documentation |
Difference the functional data at some lag and iteration. For the
\ell
'th difference at lag m
, the differenced series is
defined as
Y_i(t) = (1-B^m)^{\ell} X_i(t)
where B
is the backshift operator.
## S3 method for class 'dfts'
diff(x, lag = 1L, differences = 1L, ...)
x |
A dfts object or data which can be automatically converted to that
format. See |
lag |
An integer indicating which lag to use. |
differences |
An integer indicating the order of the difference. |
... |
Further arguments to be passed to methods. |
A dfts object with the differenced values.
result <- diff(electricity, lag = 1)
result1 <- diff(electricity, differences = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.