[Rd] S4 helper functions: regular or generic?

Gopi Goswami grgoswami at gmail.com
Wed Feb 25 12:59:38 CET 2009


Hi there,


I want to write helper functions for a base class, which will be used
by its subclasses in the S4 world. This function ___will___ update
certain slots of its argument object. Please help me decide which one
of the following is a better approach with respect to coding style,
memory usage and speed:

o   Write a regular function.
o   Declare a generic and implement it just for the base class.


Thanks for sharing your insight and time,
gopi.
http://gopi-goswami.net/



More information about the R-devel mailing list