as.factor is optional for text columns in regressions