Returns the method for generic function
f corresponding to signature
sig. Contrast this function with
selectMethod, which finds the method
that S would dispatch to evaluate the call using all the information about what
classes extend other classes. The
getMethod function looks only in
the metadata for a method stored with exactly this signature.
USAGE:
getMethod
(
f
,
sig
,
where
,
optional
,
complete
)
REQUIRED ARGUMENTS:
f
Name of the generic function.
OPTIONAL ARGUMENTS:
sig
Signature of the method to return. If
sig is not supplied, returns default method.
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.
optional
Logical flag. If
optional = T, returns
NULL instead of an error message if no method is found.
complete
Logical flag. If
complete = T, value returned may be a
semanticMethod object if that is what was stored.
VALUE:
A function definition. If no method is found, returns an error message.