Description Usage Arguments Value Examples
It turns input to a fator with factor levels order defined sepcifically by user
1 | factor_level(x, level = "alp", ...)
|
x |
a vector which is a potential factor |
level |
Valid levels for x, default is "alp". User defined level character must match the number of levels of x, and must include all values of x. If equals "alp",levels of x appears alphabetically; if equals "asit",levels of x are ordered as they appeared in x. |
... |
optional arguments to pass to the function factor() |
x as a factor with level orders specified
1 | factor_level(iris$Species,level = c("versicolor","setosa","virginica"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.