A convenience function to transform on or more variables of a data frame into factors.
one or more data frame columns to be transformed into factor.
The vectors supplied are transformed into factors. Notice that if a variable is already a factor, it is updated and all unused levels are dropped.
1 2 3 4 5 6 7 8