Skip to contents

Split formula into individual terms

Usage

split_formula_to_terms(formula)

Arguments

formula

A model formula that may use standard fixed effects, random effects using lme4 syntax (see re()), and random walks defined using the rw() helper function. See the Details section below for a comprehensive explanation of the supported syntax.

Value

A character vector of formula terms

See also

Examples

epinowcast:::split_formula_to_terms(~ 1 + age_group + location)
#> [1] "1"         "age_group" "location"