Description Usage Arguments Details Value Functions Examples
View source: R/substituting_formula.R
A substituting formula helps clarify a formula where the parameters are more simply described in separate formulae.
1 2 3 | substituting_formula(x, ...)
as_substituting_formula(x, substitutions)
|
x |
The base formula |
... |
Supporting formula of the form |
substitutions |
A list of supporting formula. |
Formula are substituted in order. Substitutions may not have the same left hand side.
A substituting_formula
object which may be coerced into a
single formula with an as.formula()
method or printed as a list of
formulae.
as_substituting_formula
: Generate and check substituting_formula
1 2 | foo <- substituting_formula(y~x1+x2, x1~x3*x4, x2~x5/x6+x7)
as.formula(foo)
|
y ~ x3 * x4 + (x5/x6 + x7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.