set_factors | R Documentation |
Set a vector to a factor
set_factors(x, rev = FALSE, sort = FALSE)
x |
a vector. |
rev |
if |
sort |
if |
set_factors(c("B", "B", "A", "C"))
set_factors(c("B", "B", "A", "C"), rev = TRUE)
set_factors(c("B", "B", "A", "C"), sort = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.