get_lags: Lag multiple variables at once

View source: R/get_lags.R

get_lagsR Documentation

Lag multiple variables at once

Description

From https://stackoverflow.com/questions/55814028/multiple-lags-with-dplyr

Usage

get_lags(data, ..., n = 2)

Arguments

data

Dataframe

...

Unquoted variable names to lag

n

Number of lags

Value

Dataframe with new lagged columns added


Sz-Tim/sevcheck documentation built on Feb. 1, 2024, 12:39 a.m.