sloop (version 1.0.1)

s3_methods_class: List methods for a S3 or S4 generic (or class)

Description

Returns information about all methods belong to a generic or a class. In S3 and S4, methods belong to a generic, but it is often useful to see what generics have been provided methods for a given class. These are wrappers around utils::methods(), which returns a lot of useful information in an attribute.

Usage

s3_methods_class(x)

s3_methods_generic(x)

s4_methods_class(x)

s4_methods_generic(x)

Arguments

x

Name of class or generic

Value

A tibble with columns generic, visible, class, visible, and source.

Examples

Run this code
# NOT RUN {
s3_methods_class("Date")
s3_methods_generic("anova")

s4_methods_class("Date")
s4_methods_generic("anova")
# }

Run the code above in your browser using DataCamp Workspace