findbars: Find all bar terms in a formula's parse tree

View source: R/formula.R

findbarsR Documentation

Find all bar terms in a formula's parse tree

Description

Recursively walks the formula AST and collects all | and || nodes found inside parentheses. These are the random effect specifications.

Usage

findbars(term)

Arguments

term

A language object (formula term)

Value

A list of language objects, each a | or || call

Examples

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

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