Check if an object is a formula

Share:

Description

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

Usage

1

Arguments

x

An R object.

Value

A logical scalar.

Author(s)

Long Qu

See Also

stats::formula

Examples

1
2
is.formula(~a+b+a:b)
is.formula('~a+b+a:b')

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.