powered by
This function gives the categories ("levels") per categorical variable ("factor").
dummy_var(X)
A list with the levels.
A matrix, or a data.frame containing factors. (If the columns are of any other class, they will be coerced into factors anyway).
summary(showdata) dummy_var(showdata)
Run the code above in your browser using DataLab