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

getMethods.Class

Returns the method names of class and its super classes


Description

Returns the method names of class and its super classes as a list.

Usage

## S3 method for class 'Class'
getMethods(this, private=FALSE, deprecated=TRUE, unique=TRUE, ...)

Arguments

private

If TRUE, private methods are also returned, otherwise only public ones are returned.

deprecated

If TRUE, deprecated methods are also returned.

unqiue

If TRUE, only methods that are not implemented in one of the subclasses are returned for each class.

...

Not used.

Value

Returns a named list of named character strings.

Author(s)

Henrik Bengtsson

See Also

For more information see Class.

Examples

names <- getMethods(Exception)
  print(names)

R.oo

R Object-Oriented Programming with or without References

v1.24.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

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