methods(generic.function, class)
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.
methods("coef") methods(class="factor")