Skip to main content

lag

Add lag to a variable by shifting a column.

Usage

lag -v {} -l LAGS [-f FILL_VALUE]

Parameters

NameParameterDescriptionDefaultOptionalChoices
values-v --valuesDataset.column values to add lag to.NoneFalseNone
lags-l --lagsHow many periods to lag the selected column.5FalseNone
fill_value-f --fill-valueThe value used for filling the newly introduced missing values.NoneTrueNone

On this page