Learn R Programming

varComp (version 0.2-0)

is.formula: Check if an object is a formula

Description

This function checks if the object inherits the 'formula' class.

Usage

is.formula(x)

Arguments

x

An R object.

Value

A logical scalar.

See Also

stats::formula

Examples

Run this code
# NOT RUN {
is.formula(~a+b+a:b)
is.formula('~a+b+a:b')

# }

Run the code above in your browser using DataLab