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.

Value

A character vector of formula terms

See also

Functions used to help convert formulas into model designs as_string_formula(), construct_re(), construct_rw(), enw_formula(), enw_manual_formula(), parse_formula(), remove_rw_terms(), re(), rw_terms(), rw()

Examples

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