Learn R Programming

jwutil (version 1.2.3)

build_formula: build simple linear formula from variable names

Description

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

Usage

build_formula(left, right)

buildLinearFormula(left, right)

Arguments

left

character vector

right

character vector

Value

formula

Examples

Run this code
# NOT RUN {
print(f <- build_formula(left = "A", right = c("B", "C")))
class(f)
build_formula(left = "Species", right = names(iris)[1:4])
# }

Run the code above in your browser using DataLab