Skip to content

Create a formula

Usage

new_formula(lhs, rhs, env = caller_env())

Arguments

lhs, rhs

A call, name, or atomic vector.

env

An environment.

Value

A formula object.

See also

Examples

new_formula(quote(a), quote(b))
#> a ~ b
#> <environment: 0x55deb52cb428>
new_formula(NULL, quote(b))
#> ~b
#> <environment: 0x55deb52cb428>