methods
List Methods of an S3 or S4 Generic Function

Description

Returns the method names for either an S3 or S4 generic function name or class name.

Usage

methods(generic.function, class)
.S3methods(generic.function, class, envir=parent.frame())

Arguments

generic.function the name of a generic function.
class the name of a class.
envir an environment to use when searching for a generic function object.

Details

Exactly one of the arguments generic.function or class must be supplied.
Use showMethods to find more information on the methods of an S4 generic function.
An S3 method is a function with the name of the form <generic>.<class>. It is called when <generic>(object) is called, and when class(object)==<class>. For example, the function print.lm is called to print objects whose class is "lm".
This function finds for all functions with names of this form.
Value
The attributes of this value contain more information about the locations of the methods.
See Also
showMethods.
Examples
methods("coef")
methods(class="factor")
.S3methods("print")
Package utils version 6.0.0-69
Package Index