[R] attach()ing User-Defined Classes with Complex Structures

Rob Lee rlee at fpcc.net
Wed Sep 18 23:38:20 CEST 2002


How would you implement attach()ing to a user-defined class with multiple 
slots in R? 

A primary goal of my software is to hide the data representation from the 
user, 
allowing them to attach() to my program's complex classes and refer to 
their contents by name - THEREBY avoiding having to pass the classes to 
every function call.

Also, is it true that attaching to a to a sub-classed list only get()s you 
access to it's ".Data" slot and nothing else?

-R


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list