Skip to contents

Returns the fixed-effects-only formula by stripping all (expr|group) terms. If reformulas is installed, delegates to reformulas::nobars(); otherwise falls back to lme4::nobars(), and finally to regex substitution.

Usage

remove_re_bars(formula)

Arguments

formula

A formula potentially containing bar terms.

Value

A formula with bar terms removed.

Examples

remove_re_bars(y ~ x + (1 | group))
#> y ~ x
#> <environment: 0x56063127f2a0>
# y ~ x