# is.function

0th

Percentile

##### Is an Object of Type (Primitive) Function?

Checks whether its argument is a (primitive) function.

Keywords
programming
##### Usage
is.function(x)
is.primitive(x)
x
an R object.
##### Details

is.primitive(x) tests if x is a primitive function (either a "builtin" or "special" as described for typeof)? It is a primitive function.

##### Value

TRUE if x is a (primitive) function, and FALSE otherwise.

• is.function
• is.primitive
##### Examples
library(base) is.function(1) # FALSE is.function(is.primitive) # TRUE: it is a function, but .. is.primitive(is.primitive) # FALSE:it's not a primitive one, whereas is.primitive(is.function) # TRUE: that one *is* 
Documentation reproduced from package base, version 3.3, License: Part of R @VERSION@

### Community examples

Looks like there are no examples yet.