lead_col: Create lead column based on another

Description Usage Arguments Examples

Description

Select a column to have the lead row of be noted in a new mutated column.

Usage

1
lead_col(df, col, replace_na_with = NULL)

Arguments

df, col, replace_na_with

a data frame a column and what to replace NAs with

Examples

1
mtcars %>% lead_col(cyl,0)

nhemerson/tibbleColumns documentation built on May 29, 2019, 7:18 a.m.