Description Usage Arguments Value
This function changes the oder of the levels of a factor
1 | orderfactor(x, neworder, ordered = is.ordered(x), ...)
|
x |
factor |
neworder |
numeric or character vector specifiyng the new order of the levels |
ordered |
logical specifying if the factor will be ordered or not (defaults to input factor class) |
... |
other parameters to be passed to factor function (labels, exclude) |
factor with levels order changed according to specifications
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.