powered by
Shift an Fts ojbect forward or backwards in time be the supplied number of periods
# S3 method for fts lead(x, k, …) # S3 method for fts lag(x, k, …)
An Fts object
number of periods to shift
further arguments to function
an Fts object
removed elements are replaced with NA
# NOT RUN { x <- fts(index=seq(from=Sys.Date(),by="days",length.out=10),data=1:10) print(x) lag(x,1) lead(x,1) # }
Run the code above in your browser using DataLab