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