Search for a Method for a Generic Function

DESCRIPTION:

Search to see if a method with signature sig exists for generic function f, possibly via class extensions or group generics.

USAGE:

hasMethod ( f , sig )

REQUIRED ARGUMENTS:

f
Name of the generic function.

OPTIONAL ARGUMENTS:

sig
Signature of the method to search for. If sig is not supplied, searches for default method.

VALUE:

Logical value. Returns TRUE if generic function has a method (possibly via class extensions or group generics) for signature sig, FALSE otherwise.

SEE ALSO:

, , ,

EXAMPLES:

hasMethod("plot")
## returns T for default method