step_shift: Calculate lag and lead of a variable

Description Usage Arguments Value

View source: R/step_shift.R

Description

Calculate lag and lead of a variable

Usage

1
step_shift(rec, o_var, n_var, type = c("lag", "lead"), shift_window)

Arguments

rec

A rec object

o_var

Old variable to transform

n_var

New variable name

type

Lag of lead

shift_window

The shifting window (integer)

Value

A rec object


MohoWu/oilPrep documentation built on Dec. 17, 2021, 4:20 a.m.