build.formula: Formula Builder

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/buildFormula.r

Description

Formula Builder

Usage

1
build.formula(lhs, rhs)

Arguments

lhs

Character vector for left side of formula

rhs

Character vector for right side of formula

Details

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.

Value

A formula object

Author(s)

Jared P. Lander www.jaredlander.com

See Also

formula as.formula

Examples

1
2
3
4
build.formula("Y", "X")
build.formula(c("Y", "Z"), "X")
build.formula("Z", c("X", "Q"))
build.formula(c("Y", "Z"), c("X", "Q"))

useful documentation built on Oct. 8, 2018, 5:04 p.m.