[Rd] S4 helper functions: regular or generic?

From: Gopi Goswami <grgoswami_at_gmail.com>
Date: Wed, 25 Feb 2009 06:59:38 -0500


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/



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 25 Feb 2009 - 11:08:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 25 Feb 2009 - 14:00:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive