add_lags: Add lags

Description Usage Arguments Value

View source: R/load-data.R

Description

Add lags

Usage

1
add_lags(data, lags = NULL)

Arguments

data

(data frame) Data with variables to create lags for.

lags

(list) List of lags to include for each variable variables. Element name should be variable and numeric values will give lags. Lags should be specified as number of half-hourly periods, e.g., c(1, 3, 5) will create 30, 90 and 150 minute lags.

Value

Data frame with additional lags.


gprashal0706/chevckit documentation built on Dec. 20, 2021, 12:45 p.m.