powered by
A substituting formula helps clarify a formula where the parameters are more simply described in separate formulae.
substituting_formula(x, ...)as_substituting_formula(x, substitutions)
as_substituting_formula(x, substitutions)
A substituting_formula object which may be coerced into a single formula with an as.formula() method or printed as a list of formulae.
substituting_formula
as.formula()
The base formula
Supporting formula of the form x1~x2+x3*x4...
x1~x2+x3*x4...
A list of supporting formula.
as_substituting_formula(): Generate and check substituting_formula
as_substituting_formula()
Formula are substituted in order. Substitutions may not have the same left hand side.
foo <- substituting_formula(y~x1+x2, x1~x3*x4, x2~x5/x6+x7) as.formula(foo)
Run the code above in your browser using DataLab