Skip to contents

is.formula() checks if an object is a formula.

Usage

is.formula(form)

Arguments

form

object to check

Value

The is_formula() function returns TRUE if the input is a formula, and FALSE otherwise.

Examples

is.formula(~ x)
#> [1] TRUE
is.formula(1:10)
#> [1] FALSE