is_formula: Test if an object is a formula

Description Usage Arguments Value Examples

View source: R/is_formula.R

Description

The function is_formula tests if the object x is a formula.

Usage

1
2
3

Arguments

x

An object.

Value

A logical, TRUE if x is a formula.

Examples

1
2
3
is_formula("this is a formula")
is_formula(f <- formula("y ~ x"))
is_formula(update(f, ~ . -1))

paulponcet/bazar documentation built on July 15, 2019, 5:28 a.m.