Learn R Programming

onlineforecast (version 1.0.2)

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)

Value

A data.list.

Arguments

DL

The data.list to be lagged.

lagseq

The integer(s) setting the lag steps.

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
# The values are simply shifted in each data.frame with lagdf

Run the code above in your browser using DataLab