powered by
Find the categorical variables in a model
find_categorical_vars(fit)
A model fit by lm() or aov() (or similar).
lm()
aov()
A character vector of the categorical variables in the model. Note these are not terms, they are variables, e.g. interactions are not included here, only the variables they are comprised of.