View source: R/formula_utils.R
combine_formulas | R Documentation |
Combining formulas by +
or another operator.
This is particularly useful for linking tables in the case of table building with formulas.
combine_formulas(lof, operator = "+", simplify = FALSE, env = parent.frame())
lof |
list or vector of formulas to be linked |
operator |
|
simplify |
logical value, default FALSE. Determines whether the formula should be expanded and simplified before output or not. |
env |
the environment for the output formula |
model formula
Daniel Lupp and Øyvind Langsrud
lof1 <- c(~a+b, ~a:c, ~c*d)
combine_formulas(lof1)
combine_formulas(lof1, operator = "*")
combine_formulas(lof1, simplify = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.