Examples for 'base::is.function'


Is an Object of Type (Primitive) Function?

Aliases: is.function is.primitive

Keywords: programming

### ** Examples

is.function(1) # FALSE
[1] FALSE
is.function (is.primitive) # TRUE: it is a function, but ..
[1] TRUE
is.primitive(is.primitive) # FALSE: it's not a primitive one, whereas
[1] FALSE
is.primitive(is.function)  # TRUE: that one *is*
[1] TRUE

[Package base version 4.2.3 Index]