guess_cat_num {explore} | R Documentation |
Guess if variable is categorical or numerical based on name, type and values of variable
guess_cat_num(var, descr)
var |
A vector (dataframe column) |
descr |
A description of the variable (optional) |
"cat" (categorical), "num" (numerical) or "oth" (other)
guess_cat_num(iris$Species)