extract_grouping: Extract grouping variables from a (list of) formula(s)

View source: R/helpfunctions_formulas_general.R

extract_groupingR Documentation

Extract grouping variables from a (list of) formula(s)

Description

Extracts the grouping variables (i.e., variables after |) from a model formula or a list of such formulas

Usage

extract_grouping(formula, warn = FALSE)

Arguments

formula

a formula object or a list of formula objects

warn

does nothing

Value

a vector of character strings containing the unique grouping variable names found in any of the input formulas, or NULL if there is no grouping found


JointAI documentation built on Jan. 30, 2026, 5:07 p.m.