Calculate the percent of non-missing values in a character vector containing the values of interest. This is a helper function for factorize_df().
prop_matching(vec, valid_strings, ignore.case = FALSE)
a numeric proportion between 0 and 1.
character vector.
the values that the variable can possibly take on.
if TRUE, ignores case in matching