Learn R Programming

JointAI (version 1.1.0)

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

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

Arguments

formula

a formula object or a list of formula objects

warn

does nothing