Search to see if a method exists for generic function
f whose signature matches
sig exactly.
USAGE:
existsMethod
(
f
,
sig
,
where
)
REQUIRED ARGUMENTS:
f
Name of the generic function.
sig
Signature of the method to search for.
OPTIONAL ARGUMENTS:
where
Database to search. Supply either an object defining a database or a number representing its position in the search path. If
where is missing, all attached databases are searched.
VALUE:
Logical value. Returns
TRUE only for methods that match signature
sig exactly,
FALSE otherwise.
SEE ALSO:
,
,
,
EXAMPLES:
## is there a method for plot in which x = timeSeries?
existsMethod("plot", signature(x = "timeSeries"))
## returns T