is.formula: Is the R Object a Formula

View source: R/functions.R

is.formulaR Documentation

Is the R Object a Formula

Description

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

Usage

is.formula(x)

Arguments

x

An R object.

Details

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

Value

single logical

Author(s)

Eric Gilleland

Examples

is.formula(~1)
is.formula(1:3)

distillery documentation built on April 3, 2025, 10:36 p.m.