Description Usage Arguments Value Examples
sets levels to the order in which they appear in the data, i.e. set the levels <e2><80><9c>as is<e2><80><9d>
1 | set_factor(x)
|
x |
a factor you want to set |
Return levels to the order in which they appear in the data, An error is raised if the input is not a factor
1 | set_factor(factor(c("b", "c", "a"))) # Levels: b c a
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.