char_to_fac function

Convert character-type columns of a dataframe to factor-type