is.formula: Test if an object is a formula

Description Usage Arguments Value Examples

Description

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

Usage

1

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))

bazar documentation built on May 2, 2019, 7:02 a.m.