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

(Ted Harding) Ted.Harding at manchester.ac.uk
Wed May 12 23:48:17 CEST 2010


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.

Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 12-May-10                                       Time: 22:48:14
------------------------------ XFMail ------------------------------



More information about the R-help mailing list