View source: R/methods-stats.R
relevel.tiny_labelled | R Documentation |
The levels of a factor are re-ordered so that the level specified by ref is
first and the others are moved down. This is a copy from relevel
in the stats package, but preserves the label
attribute and class tiny_labelled
.
## S3 method for class 'tiny_labelled'
relevel(x, ref, ...)
x |
an unordered factor. |
ref |
the reference level, typically a string. |
... |
additional arguments for future methods. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.