Learn R Programming

fChange (version 2.1.0)

lag.dfts: Lag dfts objects

Description

Compute a lagged version of a functional time series, shifting the time base back by a given number of observations.

Usage

# S3 method for dfts
lag(x, k = 1, ...)

Value

A dfts object.

Arguments

x

A dfts object. See dfts().

k

Integer for the number of lags (in units of observations).

...

Unused additional parameters.

See Also

stats::lag(), diff.dfts()

Examples

Run this code
result <- lag(electricity)

Run the code above in your browser using DataLab