build_formula: build simple linear formula from variable names

Description Usage Arguments Value Examples

View source: R/util.r

Description

build simple linear formula from variable names given by two character vectors. TODO: allow unquoted names.

Usage

1
2
3
build_formula(left, right)

buildLinearFormula(left, right)

Arguments

left

character vector

right

character vector

Value

formula

Examples

1
2
3
4
print(f <- build_formula(left = "A", right = c("B", "C")))
class(f)

build_formula(left = "Species", right = names(iris)[1:4])

jackwasey/jwutil documentation built on Dec. 5, 2018, 5:31 a.m.