case_when_vars: case_when function 'case_when_vars' completes case_when...

case_when_varsR Documentation

case_when function case_when_vars completes case_when evaluation and returns a new variable

Description

case_when function case_when_vars completes case_when evaluation and returns a new variable

Usage

case_when_vars(raw, scoresheet)

Arguments

raw

a raw data object

scoresheet

a properly formatted scoresheet object. Key columns that must have data for a case_when function are new_var and code. Code should be formatted in accordance with dplyr case_when input. See case_when

Value

appends new_var column after evaluation of case_when statements in code column of scoresheet


embark-lab/scorekeeper documentation built on Oct. 25, 2023, 1:36 a.m.