| standardGeneric | R Documentation |
The functionstandardGeneric initiates dispatch of S4methods: see the references and the documentation of themethods package. Usually, calls to this function aregenerated automatically and not explicitly by the programmer.
standardGeneric(f, fdef)
f | The name of the generic. |
fdef | The generic function definition. Never passed whendefining a new generic. |
standardGeneric dispatches the method defined for a genericfunction namedf, using the actual arguments in the frame from whichit is called.
The argumentfdef is inserted (automatically) when dispatchingmethods for a primitive function. If present, it must always be the functiondefinition for the corresponding generic. Don't insert this argumentby hand, as there is no validity checking and miss-specifying thefunction definition will cause certain failure.
For more, use themethods package, and see the documentation inGenericFunctions.
John Chambers
Chambers, John M. (2008)Software for Data Analysis: Programming with RSpringer. (For the R version.)
Chambers, John M. (1998)Programming with DataSpringer (For the original S4 version.)
Add the following code to your website.
For more information on customizing the embed code, readEmbedding Snippets.
