View source: R/formula_utils.R
formula_include_hierarchies | R Documentation |
Replace variables in formula with sum of other variables
formula_include_hierarchies(
f,
hier_vars,
simplify = TRUE,
env = parent.frame()
)
f |
model formula |
hier_vars |
named list. the names of |
simplify |
logical value, default TRUE. Determines whether the formula should be simplified before output or not. |
env |
the environment for the output formula |
model formula
Daniel Lupp
f2 <- formula_from_vars(c("a", "b", "c"), c("a", "c"))
formula_include_hierarchies(f2, list(a = c("hello", "world")),
simplify = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.