to_case_when_block: Build case_when block for a mutate()

Description Usage Arguments Value

View source: R/to_case_when_block.R

Description

Build case_when block for a mutate()

Usage

1
to_case_when_block(uniqvals, varname)

Arguments

uniqvals

unique values of varname

varname

variable name for the LHS of the case_when block

Value

prints R code to the console that can be copy and pasted


rdisalv2/dismisc documentation built on Nov. 2, 2021, 1:34 a.m.