Skip to contents

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