Hi, On Wed, May 12, 2010 at 5:48 PM, Ted Harding <ted.hard...@manchester.ac.uk> wrote: > Greetings All, > > Out of curiosity, I've just done a very primitive experiment: > > Obj <- list(Fun=sum, Dat=c(1,2,3,4)) > Obj$Fun(Obj$Dat) > # [1] 10 > > That sort of thing (much more sophisticated) must be documented > mind-blowingly somewhere. Where? > > Where I stand right now: The above (and its immediately obvious > generalisations, like Obj$Fun<-cos) is all I know about it so far.
This doesn't really answer you question, but I believe the R.oo package uses this type mojo for its OO-style programming. Some documentation is here: http://www1.maths.lth.se/help/R/R.oo/ -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.