R/tools.R
guess_cat_num.Rd
Guess if variable is categorical or numerical based on name, type and values of variable
guess_cat_num(var, descr)
A vector (dataframe column)
A description of the variable (optional)
"cat" (categorical), "num" (numerical) or "oth" (other)
guess_cat_num(iris$Species) #> [1] "cat"