classMethods: List all methods for an object

Description Usage Arguments Author(s) References Examples

View source: R/classMethods.R

Description

The built-in methods() function will give all available methods for a specified class, or for a specified generic function, but not for an object. Objects can have multiple classes, so this can be complicated to calculate.

Usage

1

Arguments

cl

a vector of class names, or an object

Author(s)

MrFlick

References

http://stackoverflow.com/questions/23840404/function-to-return-all-s3-methods-applicable-to-an-object

Examples

1
2
g <- glm(y~x,data=data.frame(x=1:10,y=1:10))
classMethods(g)

stackoverflow documentation built on Jan. 10, 2020, 9:07 a.m.