Verify that a given variable set as the expected number of values.
verify_numbers_values.Rd
Verify that a given variable set as the expected number of values.
Examples
verify_numbers_values("my_var", c("low", "borderline", "acceptable"), 3)
verify_numbers_values("my_var", c("low", "borderline", "acceptable", NA), 3)
verify_numbers_values("my_var", c("low", "acceptable", NA), 3)
#> Warning: Expecting 3 of values in my_var but got 2 unique values.
verify_numbers_values("my_var", c("none", "low", "borderline", "acceptable"), 3)
#> Warning: Expecting 3 of values in my_var but got 4 unique values.