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"))


jaredlander/useful documentation built on Nov. 4, 2023, 10:56 a.m.