Find a Method for a Generic Function
DESCRIPTION:
Finds the databases that have a method for function
f
and this
signature
of
classes.
USAGE:
findMethod
(
f
,
signature
,
unique
,
write
,
default
)
REQUIRED ARGUMENTS:
- f
-
Name of the generic function.
OPTIONAL ARGUMENTS:
- signature
-
Signature of the method to search for.
- unique
-
If
unique = T
, only one database name will be returned, the first one in the search path where a matching method is found.
- write
-
If
write = T
, any databases returned must be writable.
- default
-
Use the
default
argument to return any desired output when
unique = T
and no methods are found.
VALUE:
A character vector of database name(s).
SEE ALSO:
,
,
,
EXAMPLES:
findMethod("plot")
## returns "main"