Skip to contents

Recursively rewrites the formula AST, removing any | or || nodes found inside parentheses. Returns the fixed-effects-only formula.

Usage

nobars(term)

Arguments

term

A language object (formula term)

Value

A language object with all bar terms removed, or NULL if nothing remains

Examples

nobars(y ~ x + (1 | g) + (1 + x | h))