Is an Object of Type (Primitive) Function?
是一个对象类型(原始)函数吗?
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Checks whether its argument is a (primitive) function.
检查它的参数是否是一个(原始)函数。
用法----------Usage----------
is.function(x)
is.primitive(x)
参数----------Arguments----------
参数:x
an R object.
R对象。
Details
详情----------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.
is.primitive(x)测试,如果x是一种原始的功能(无论是"builtin"或"special"作为typeof所述)?它是一种原始的功能。
值----------Value----------
TRUE if x is a (primitive) function, and FALSE otherwise.
TRUE x如果(原始)函数,FALSE否则。
举例----------Examples----------
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*[真:那个*是*]