Is object a formula?

is_formula(x)

Arguments

x

Object to test

Examples

is_formula(~ 10)
#> [1] TRUE
is_formula(10)
#> [1] FALSE