Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

classMethods

List all methods for an object


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

classMethods(cl)

Arguments

cl

a vector of class names, or an object

Author(s)

References

Examples

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

stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.