unformulate {DAMisc}R 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


[Package DAMisc version 1.7.2 Index]