unformulate: Break Apart Model Formula

unformulateR Documentation

Break Apart Model Formula

Description

Works as a sort of inverse to reformulate by breaking apart the formula into response and the term labels. It also returns the variable names of all of the variables implicated in the formula.

Usage

unformulate(form, keep_env = FALSE)

Arguments

form

A formula

keep_env

Logical indicating whether the formula's environment should be returned with the result

Details

A sort of inverse of the reformulate function.

Value

A list with termlabels giving the rhs terms of the model, response give the lhs of the model, env optionally giving the environment of the formula and vars a vector of the variable names implicated in the formula


davidaarmstrong/damisc documentation built on Oct. 1, 2023, 3:05 p.m.