powered by
Tests to see if an object is a formula or not.
is.formula(x)
single logical
An R object.
Eric Gilleland
This function is a very simple one that simplifies checking whether or not the class of an object is a formula or not.
is.formula(~1) is.formula(1:3)
Run the code above in your browser using DataLab