tochr | R Documentation |
This function checks if your vector is not a character and if not, will convert it to a character.
tochr(x)
x |
A character, factor or numeric vector. |
tochr
Returns a character vector.
# vector of factors
fact <- factor(c("a", "b", "c", "d"))
# convert to character
char <- tochr(x = fact)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.