listMethods {svMisc}R Documentation

List all methods associated with a generic function

Description

List all S3 and/or S4 methods for a generic function.

Usage

listMethods(f, S3 = TRUE, S4 = TRUE)

Arguments

f The name of the generic function
S3 If TRUE, list of S3 methods
S4 If TRUE, list of S4 methods

Value

A list with components:

S3 The S3 methods for this generic function, or character(0) if none
S4 The S4 methods for this generic function, or character(0) if none

Author(s)

Philippe Grosjean <phgrosjean@sciviews.org>

See Also

listCustoms

Examples

        listMethods("t.test") # S3
        listMethods("show")     # S4
        listMethods("ls") # None, not a generic function!

[Package svMisc version 0.8-2 Index]