Description Usage Arguments Details Value Author(s) Examples
View source: R/r-utility-flevels.R
This function gets the set of factor levels in the form of a factor rather than a character vector. It is used in examples presented in the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_algorithms for more details.
1 | flevels(v)
|
v |
a factor |
The set of levels of v
is converted to a factor with the
very same set of levels.
factor(levels(v), levels = levels(v))
Pawel Cichosz <p.cichosz@elka.pw.edu.pl>
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.