Description Usage Arguments Value Examples
Converts a data.frame
that consists columns of
factors into a data.frame
consisting of integers.
If useLevelNames is FALSE, numbering starts at 0.
1 | fdfAsInt(x, useLevelNames = T)
|
x |
an object of class |
useLevelNames |
logical, indicating whether the labels of the levels should be be converted to integers. This only makes sense if the levels are integers stored as characters. e.g. factor(c("3", "2", "3")). |
The data.frame with columns converted to integers
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.