unformulate: Break Apart Model Formula

Description Usage Arguments Details Value

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

1
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


DAMisc documentation built on Jan. 12, 2022, 1:07 a.m.