create_lagged: Creates Lagged Data

Description Usage Arguments Value

View source: R/create_lagged.R

Description

Creates a new data frame(?) with Lag/Lead values. Also one may exclude the features(columns) from "lag process" but have them with the new data frame

Usage

1
create_lagged(data, lags, exclude_head = NULL, exclude_tail = NULL)

Arguments

data

input data

lags

list of wanted lags. Negative values correspond to lags while positives correspond to leads.

exclude_head

the columns of data that is not subject to lagging process (e.g. date/hour). Will be merged to left-side of the lagged data.

exclude_tail

the columns of data that is not subject to lagging process (e.g. production). Will be merged to right-side

Value

Data with more columns as lagged versions of existing columns


canhakan/canhakan1 documentation built on Dec. 19, 2021, 1:48 p.m.