R: Is the R Object a Formula

is.formula {distillery} | R 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 is a very simple function that simplifies checking that 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)

[Package distillery version 1.0-4 Index]