Grab the RHS formula from a model object

grab_fixed_formula(model)

Arguments

model

a model object such as lm, glm, merMod

Value

the right-hand side of a model's formula object

Examples

fit <- lm(Sepal.Width ~ Petal.Width, data = iris)
grab_fixed_formula(fit)
#> ~Petal.Width
#> <environment: 0x7fea459a50b8>