factorise | R Documentation |
Generate a factor with levels in prescribed order.
factorise(x)
x |
A character vector. |
A factor from x
, with levels in the same order as they appear
in within x
.
Michaja Pehl
factor(c('a', 'c', 'b'))
factorise(c('a', 'c', 'b'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.