Lag/Lead (Shift) Function for Univariate Series

ATA.Shift(x, shift_by, fill = NA)

Arguments

x

given vector

shift_by

lag or lead parameter

fill

a value to be used to fill the rows

Value

Generating a lag/lead variables