levelOrder | R Documentation |
None yet.
levelOrder(f, new.order)
f |
A factor. |
new.order |
A character vector containing all and only the levels of f, in the desired order. |
Reorders the levels of factor f as specified in new.order
, which must contain all and
only the existing levels of f (including unused levels), but in the desired order. If new.order
and levels(f)
do not contain exactly the same elements, then do nothing.
A factor.
Dave Braze davebraze@gmail.com
factor
levels
relevel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.