Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.formula

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

Method Functions for Confidence Intervals and to Distill Information from an Object

v1.2
GPL (>= 2)
Authors
Eric Gilleland
Initial release
2020-11-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.