methods
List Methods of a Generic SV3 Function
Description
Returns the old-style (SV3) method names for either a specified generic function name
or a class name.
Usage
methods(generic.function, class)
Arguments
generic.function |
the name of a generic function.
|
class |
the name of a class.
|
Details
Exactly one of the arguments must be supplied.
This function was used to aid development of class-dependent methods in
S-PLUS 3.x and 4.x.
It is retained for backward compatibility only.
Use showMethods to find the methods of
a new-style generic function.
A method is a function with the name
GENERIC.CLASS.
It is called when GENERIC(object) is called
and class(object)==CLASS.
This function just looks for all objects with names of this form.
It does not check the type of each object found,
so data sets with names of this form can also be returned.
Value
returns a character vector of the names for all methods for the given generic
function or class. The names associated with the output also contain the locations
of the methods.
See Also
Examples
methods("coef")
methods(class="factor")