nobars: Remove all bar terms from a formula's parse tree

View source: R/formula.R

nobarsR Documentation

Remove all bar terms from a formula's parse tree

Description

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))

tulpa documentation built on Oct. 19, 2026, 5:09 p.m.