Skip to contents

if_else_vars function creates a new variable based on if_else statements provided

Usage

if_else_vars(raw, scoresheet)

Arguments

raw

Raw data object

scoresheet

Formatted scoresheet object. Key variables for if_else_vars are 'if_condition', 'if_true_return' and 'else_return'. These variables should be entered in as the 'condition', 'TRUE' and 'FALSE' statements, respectively, in a 'dplyr' if_else statement. see: dyplyr if_else.

Value

a tibble with 'new_var' appended.