is.function {base} | R Documentation |
Checks whether its argument is a (primitive) function.
is.function(x);
is.primitive(x) tests if x is a primitive function, i.e, if typeof(x) is either "builtin" or "special".
TRUE if x is a (primitive) function, and FALSE otherwise.