Perform a check
do_check.RdChecks whether variables fulfill a specific test.
Usage
do_check(
df,
v_vars,
check,
label_check,
template_ok = "all variables are {label_check}",
template_fail = "{var} is not {label_check}"
)Arguments
- df
a dataframe.
- v_vars
character vector of variables on which to apply the test.
- check
a function to apply to the `vars`.
- label_check
character string. Text describing the test to pass.
- template_ok
character string. Text to display when a test is passed by a variable.
- template_fail
character string. Text to display when a test is not passed by a variable.