sanitize_terms | R Documentation |
Remove characters from term names that will be difficult to address using the $
-operator.
This function is not exported.
sanitize_terms(x, standardized = FALSE)
## S3 method for class 'character'
sanitize_terms(x, standardized = FALSE)
## S3 method for class 'factor'
sanitize_terms(x, standardized = FALSE)
## S3 method for class 'data.frame'
sanitize_terms(x, standardized = FALSE)
## S3 method for class 'list'
sanitize_terms(x, standardized = FALSE)
x |
Character. Vector of term names to be sanitized. |
standardized |
Logical. If |
An object of the same class as x
containing sanitized term names as
characters.
sanitize_terms(c("(Intercept)", "Factor A", "Factor B", "Factor A:Factor B", "scale(FactorA)"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.