build.formula: Formula Builder

View source: R/buildFormula.r

build.formulaR Documentation

Formula Builder

Description

Formula Builder

Usage

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


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. 24, 2023, 9:07 a.m.