powered by
Formula Builder
build.formula(lhs, rhs)
Character vector for left side of formula
Character vector for right side of formula
A formula object
Builds a formula easily given the left and right hand sides. Right now it only handles additive formulas and not interactions unless that is specified in the character.
formula as.formula
# NOT RUN { build.formula("Y", "X") build.formula(c("Y", "Z"), "X") build.formula("Z", c("X", "Q")) build.formula(c("Y", "Z"), c("X", "Q")) # }
Run the code above in your browser using DataLab