This function checks if a variable a factor.
is_cat(x)
x
the variable to check
logical, TRUE if the variable is a factor
TRUE
Tom Elliott