List Methods of Old-Style (SV3) Generic Functions

DESCRIPTION:

Returns old-style (SV3) method names given either a generic function name or class name.

USAGE:

methods(generic.function, class)

OPTIONAL ARGUMENTS:

generic.function
The name of a generic function.
class
The name of a class. Exactly one of the arguments must be supplied.

VALUE:

character vector giving the names of all methods for the given generic function or class. The names associated with the output will be the locations of the methods.

DETAILS:

This function was used to aid development of class-dependent methods in S-PLUS 3.x and 4.x. It is retained only for backward compatibility. 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 simply 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 may be returned as well.

SEE ALSO:

, , .

EXAMPLES:

methods("coef")
methods(class="factor")