Learn R Programming

onlineforecast (version 1.0.0)

lagdl: Lagging which returns a data.list

Description

Lagging by shifting the values back or fourth always returning a data.list.

Usage

lagdl(DL, lagseq)

Arguments

DL

The data.list to be lagged.

lagseq

The integer(s) setting the lag steps.

Value

A data.list.

Details

This function lags (shifts) the values of the vector. A data.list is always returned with each data.frame lagged with lagdf.

Examples

Run this code
# NOT RUN {
# The values are simply shifted in each data.frame with lagdf

# }

Run the code above in your browser using DataLab