Last chance! 50% off unlimited learning
Sale ends in
is.function(x)
is.primitive(x)
TRUE
if x
is a (primitive) function, and FALSE
otherwise.
is.primitive(x)
tests if x
is a primitive function
(either a "builtin"
or "special"
as described for
typeof
)? It is a primitive function.
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*
Run the code above in your browser using DataLab