epi_shift_single: Shift predictors while maintaining grouping and time_value...

View source: R/epi_shift.R

epi_shift_singleR Documentation

Shift predictors while maintaining grouping and time_value ordering

Description

This is a lower-level function. As such it performs no error checking.

Usage

epi_shift_single(x, col, shift_val, newname, key_cols)

Arguments

x

Data frame.

shift_val

a single integer. Negative values produce leads.

newname

the name for the newly shifted column

key_cols

vector, or NULL. Additional grouping vars.

Value

a list of tibbles


cmu-delphi/epipredict documentation built on March 5, 2025, 12:17 p.m.