Difference (diff) each time series in a time.table, taking missing missing values into account (i.e. each difference it taken at exactly one time step, with a value of NA if the next observation is not present). Optionally diff preserves the exact index/time combinations present in the original time.table (in which case some information is lost).
1 2 3 |
tt |
time.table to difference |
forward |
compute forward differences (default). |
preserve.frequency |
preserve the range of (indeed,
exact) values present in |
... |
unused Note that for now only forward==TRUE and preserve.frequency==TRUE are implemented. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.