Learn R Programming

SciViews (version 0.8-8)

listMethods: 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:
  • S3The S3 methods for this generic function, or character(0) if none
  • S4The S4 methods for this generic function, or character(0) if none

See Also

listCustoms

Examples

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

Run the code above in your browser using DataLab