powered by
Primarily developed for use within tidycat::tidy_categorical()
factor_regex(m, at_start = TRUE)
A model object, created using a function such as stats::lm()
Logical indicating whether or not to include ^ in the regular expression to begin search at start of string
^
A character string for use as a regular expression.
# NOT RUN { m0 <- lm(formula = mpg ~ disp + as.factor(am)*as.factor(vs), data = mtcars) factor_regex(m = m0) # }
Run the code above in your browser using DataLab