Extract categorical variables
GroupVar(df, max.ylev = 20)
df
a data.frame
max.ylev
maximal length of unique values of catergorical variables