Description Usage Arguments Details Value Examples
Calculate the time differences of an xts time series.
1 |
|
An xts time series. |
|
An integer equal to the number of time periods of lag
(default is |
|
Additional arguments to function |
The function diff_xts()
calculates the time differences of an
xts time series and pads with zeros instead of NA
s.
Positive lagg
means differences are calculated with values from
lagg
periods in the past (vice versa for a negative lagg
).
The function diff()
is just a wrapper for diff.xts()
from
package xts,
but it pads with zeros instead of NA
s.
The function diff_it()
has incorporated the functionality of
diff_xts()
, so that diff_xts()
will be retired in future
package versions.
An xts time series with the same dimensions and the same time index as the input series.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.