if_else_vars function creates a new variable based on if_else statements provided
Source:R/if_else_vars.R
if_else_vars.Rd
if_else_vars function creates a new variable based on if_else statements provided
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.