View source: R/helper_categorical.R
cat_to_integers | R Documentation |
For a category variable with k categories, rename the category names to 1,2,...,k in the order of appearance.
cat_to_integers(x)
x |
samples of a categorical variable |
A list containing
x
Integer encoded x
xlevels
Original category names corresponding to 1,2,...,k.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.