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? Default is FALSE.

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 0.7.0 Index]