naturalfactor
creates a factor with levels in natural order.
1 | naturalfactor(x, levels, ordered = TRUE, ...)
|
x |
a character vector. |
levels |
a character vector whose elements might be appeared in |
ordered |
logical flag that determines whether the factor is ordered. |
... |
arguments that are passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.