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