Description Usage Arguments Value Examples
Sometimes we want to set levels of a factor to the order which they appear in the data, this function is able to set levels without duplicates.
1 | factor_asis(x)
|
x |
factor |
factor; return unique levels of input in the order which they appear
1 2 | a <- factor(c("high","low","low","high","medium"))
factor_asis(a)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.