Learn R Programming

bazar (version 1.0.11)

is.formula: Test if an object is a formula

Description

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

Usage

is.formula(x)

Arguments

x

An object.

Value

A logical, TRUE if x is a formula.

Examples

Run this code
# NOT RUN {
is.formula("this is a formula")
is.formula(f <- formula("y ~ x"))
is.formula(update(f, ~ . -1))

# }

Run the code above in your browser using DataLab