dummy_var {kerntools} | R Documentation |
This function gives the categories ("levels") per categorical variable ("factor").
dummy_var(X)
X |
A matrix, or a data.frame containing factors. (If the columns are of any other class, they will be coerced into factors anyway). |
A list with the levels.
summary(showdata)
dummy_var(showdata)