dropLevels | R Documentation |
This is only a wrapper for drop.levels
dropLevels(x, reorder = TRUE,
...)
x |
object to be processed |
reorder |
should factor levels be reordered using
|
... |
additional arguments to 'reorder.factor' |
Input object without unused levels.
Tomas Sieger
drop.levels
f<-factor(c(NA,1,1,2),levels=c(0,1,2),labels=c('a','b','NA'))
dropLevels(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.