guess_cat_num {explore} | R Documentation |
Return if variable is categorical or numerical
Description
Guess if variable is categorical or numerical based on name, type and values of variable
Usage
guess_cat_num(var, descr)
Arguments
var |
A vector (dataframe column) |
descr |
A description of the variable (optional) |
Value
"cat" (categorical), "num" (numerical) or "oth" (other)
Examples
guess_cat_num(iris$Species)
[Package explore version 1.3.1 Index]