col_to_factor: Private utility function: given a possibly non-factor column passed as a quosure, convert into a factor
Description
Private utility function: given a possibly non-factor column passed as a quosure, convert into a factor
Usage
col_to_factor(data, col_enquo)
Value
A data frame or tibble with the corresponding column converted to factor if nevessary