powered by
the user specifies which variables he/she would like to consider as factors, the functions converts them to factors
convertToFactors(data, facs)
data frame
vector with names of variables that the user would like to convert to factors
returns the same data frame as in the input but with the specified variables converted to factors
# NOT RUN { library(SensMixed) str(ham) ham <- convertToFactors(ham, c("Gender")) str(ham) # }
Run the code above in your browser using DataLab