Description Usage Arguments Details Value Examples
If you ever have a factor where the levels do not correspond with the defaults in R i.e (1,2) this will convert back into what they originally are. It is useful when you'd like to treat the factor as a vector (as in using it with cbind, etc.)
1 | f2n(x)
|
x |
an object of class factor |
This function converts it into a character string and then into the numeric
the ORIGINAL numbering of your factors
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.