powered by
## S3 method for class 'fts': lead(x, k, \dots) ## S3 method for class 'fts': lag(x, k, \dots)
x <- fts(rnorm(5)) print(x) lag(x,1) lead(x,1)
Run the code above in your browser using DataLab