This help topic is for R version 1.7.1. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/is.function.html
is.function {base}R Documentation

Is an Object of Type Function?

Description

Checks whether its argument is a function.

Usage

is.function(x)

Arguments

x

an R object.

Details

is.function is generic: you can write methods to handle of specific classes of objects, see InternalMethods.

Value

TRUE if x is a function, and FALSE otherwise.


[Package base version 1.7.1 ]