Attempt to convert grouping variables to factors
If variables within a data frame are not factors, try to convert them. Not intended for end-user use; this is a utility function that needs to be exported, for technical reasons.
a data frame
(logical) convert only
charactervariables to factors?
a copy of the data frame with factors converted