Given the left-hand side and right-hand side as character vectors, generates a new
stats::formula()
.
Arguments
- lhs
(
character()
)
Left-hand side of formula. Multiple elements will be collapsed with" + "
.- rhs
(
character()
)
Right-hand side of formula. Multiple elements will be collapsed with" + "
.- env
(
environment()
)
Environment for the new formula. Defaults toNULL
.- quote
(
character(1)
)
Which side of the formula to quote? Subset of("left", "right")
, defaulting to"right"
.