Learn R Programming

svMisc (version 0.9-60)

listTypes: List all types for a method

Description

List all types for a method; types are variants for a given method defined in a way it is easy to add other variants dynamically (on the contrary to a usual type = or which = argument, like in plot.ts() or plot.lm(), respectively.

Usage

listTypes(method, class = "default", strict = FALSE)

Arguments

method
the method name.
class
the class name.
strict
do we list only types for the class (TRUE), or all possible types, including for inherited objects, and default ones (FALSE, by default)?

Value

  • A vector with character strings with methods' type names.

concept

Method dispatching

See Also

listMethods

Examples

Run this code
listTypes("view")  # All default view types currently defined
listTypes("view", "data.frame")
listTypes("view", "data.frame", TRUE) # None, except if you defined custom views!

Run the code above in your browser using DataLab