Learn R Programming

distillery (version 1.2-2)

is.formula: Is the R Object a Formula

Description

Tests to see if an object is a formula or not.

Usage

is.formula(x)

Value

single logical

Arguments

x

An R object.

Author

Eric Gilleland

Details

This function is a very simple one that simplifies checking whether or not the class of an object is a formula or not.

Examples

Run this code
is.formula(~1)
is.formula(1:3)

Run the code above in your browser using DataLab