formula_expand {bruceR} | R Documentation |
Expand all interaction terms in a formula.
Description
Expand all interaction terms in a formula.
Usage
formula_expand(formula, as.char = FALSE)
Arguments
formula |
R formula or a character string indicating the formula. |
as.char |
Return character? Defaults to |
Value
A formula/character object including all expanded terms.
Examples
formula_expand(y ~ a*b*c)
formula_expand("y ~ a*b*c")
[Package bruceR version 2024.6 Index]