takes the lhs and rhs of a formula as character vectors and outputs a formula

f_charvec_to_formula(lhs, rhs)

Arguments

lhs

lhs atomic chr vec

rhs

rhs chr vec

Value

formula

Examples


lhs <- "Species"
rhs <- c("Petal.Width", "Custom_Var")

f_charvec_to_formula(lhs, rhs)
#> Species ~ Petal.Width + Custom_Var
#> <environment: 0x1229a2a58>