papaja (version 0.1.0.9842)

sanitize_terms: Sanitize term names

Description

Remove characters from term names that will be difficult to address using the $-operator. This function is not exported.

Usage

sanitize_terms(x, standardized = FALSE)

Arguments

x

Character. Vector of term-names to be sanitized.

standardized

Logical. If TRUE the name of the function scale will be removed from term names.

Examples

Run this code
# 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