rlang (version 0.0.0.9000)

is_formula: Is object a formula?

Description

Is object a formula?

Usage

is_formula(x)

Arguments

x
object to test

Examples

Run this code
x <- disp ~ am
is_formula(x)

is_formula(~ 10)
is_formula(10)

Run the code above in your browser using DataLab