model_terms | R Documentation |
Parse a formula object into its left-hand-side and right-hand-side components
model_terms(x)
x |
Formula to parse |
list with named elements "lhs" and "rhs", containing variables on each respective side of the equation
# Set up a hypothetical function, then decompose into left-hand and
# right-hand sides
form <- formula(outcome ~ treatment + confounder + unit + time)
model_terms(form)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.