Grab the RHS formula from a model object
grab_fixed_formula(model)
a model object such as lm
, glm
, merMod
the right-hand side of a model's formula
object
fit <- lm(Sepal.Width ~ Petal.Width, data = iris)
grab_fixed_formula(fit)
#> ~Petal.Width
#> <environment: 0x7fea459a50b8>