fwdDiff | R Documentation |
Forward difference of a time series
fwdDiff(x, lag, na.pad = TRUE)
x |
zoo or xts matrix |
lag |
numeric; period to difference over |
na.pad |
logical |
A matrix (same type as input) of forward differences
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.