Description Usage Arguments Details Value Author(s)
Relabel the levels of factors to provide more descriptive names and reduce the number of factor levels.
1 | relabel.factor(x, new.labels, old.labels=levels(x))
|
x |
A factor. |
new.labels |
The new factor level labels. |
old.labels |
The old factor level labels. |
The number of new factor labels/levels must be less than the number of labels/levels than the original factor.
A factor whose length is equal to the old factor.
Dan Putler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.