powered by
Function to quick mutate columns to factor.
to_factor(.data, ...)
A data frame
The variable(s) to encode to a factor.
An object of the same class of .data with the variables in ... encoded to a factor.
.data
...
# NOT RUN { library(metan) PH_EH_to_factor <- to_factor(data_ge2, PH, EH) PH_EH_to_factor <- to_factor(data_ge2, 4:5) # } # NOT RUN { # }
Run the code above in your browser using DataLab