unformulate | R Documentation |
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.
unformulate(form, keep_env = FALSE)
form |
A formula |
keep_env |
Logical indicating whether the formula's environment should be returned with the result |
A sort of inverse of the reformulate
function.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.