powered by
This function checks if your vector is not a character and if not, will convert it to a character.
tochr(x)
tochr Returns a character vector.
tochr
A character, factor or numeric vector.
# vector of factors fact <- factor(c("a", "b", "c", "d")) # convert to character char <- tochr(x = fact)
Run the code above in your browser using DataLab