powered by
Remove characters from term names that will be difficult to address using the $-operator. This function is not exported.
$
sanitize_terms(x, standardized = FALSE)
Character. Vector of term-names to be sanitized.
Logical. If TRUE the name of the function scale will be removed from term names.
TRUE
scale
# NOT RUN { sanitize_terms(c("(Intercept)", "Factor A", "Factor B", "Factor A:Factor B", "scale(FactorA)")) # }
Run the code above in your browser using DataLab