char_to_fac function

Convert character-type columns of a data frame to factor-type