Description Usage Arguments Methods (by class) Note See Also Examples
Compute a lagged version of a time series by shifting observation times. Each observation time is shifted by the same temporal amount, thereby causing a shift in the time series sample path.
1 2 3 4 |
x |
a time series object. |
... |
further arguments passed to or from methods. |
lag_t |
a finite |
uts
: shift observation times for a "uts"
object.
For an evenly spaced time series (1) shifting observation times, and (2) shifting observation values essentinally gives the same result. For unevenly spaced time series, however, these two operations are quite different. The former affects only the observation times, while the latter affects only the observation values (apart from observations that are dropped).
lag.uts
allows to shift observation values, as opposed to observation times.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.