is.formula function

Formula

Formula

Checks if the object is of the type formula

is.formula(x)

Arguments

  • x: the object.

Returns

logical indicating if the object is a formula or not.

Examples

f = formula(y ~ x) is.formula(f)