formula_expand: Expand all interaction terms in a formula.

Description Usage Arguments Value Examples

View source: R/bruceR_stats_04_regress.R

Description

Expand all interaction terms in a formula.

Usage

1

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

1
2
formula_expand(y ~ a*b*c)
formula_expand("y ~ a*b*c")

bruceR documentation built on June 22, 2021, 1:06 a.m.