lead.lag {fts} | R Documentation |
Shift an Fts ojbect forward or backwards in time be the supplied number of periods
## S3 method for class 'fts' lead(x, k, ...) ## S3 method for class 'fts' lag(x, k, ...)
x |
An Fts object |
k |
number of periods to shift |
... |
further arguments to function |
removed elements are replaced with NA
an Fts object
Whit Armstrong
x <- fts(rnorm(5)) print(x) lag(x,1) lead(x,1)