[R] A primitive OO in R -- where next?

Steve Lianoglou mailinglist.honeypot at gmail.com
Thu May 13 00:02:04 CEST 2010


Hi,

On Wed, May 12, 2010 at 5:48 PM, Ted Harding
<Ted.Harding at 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



More information about the R-help mailing list