| formula_has_interaction | R Documentation |
Check whether a variable participates in a formula interaction
formula_has_interaction(formula, variable)
formula |
A model formula. |
variable |
Character, the name of the variable to check. |
Uses expanded model terms, so interactions removed with - do not
count. Arithmetic inside I() is not treated as a formula interaction.
A single logical value indicating whether an interaction term involves
variable, including through a transformation such as factor(variable).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.