[R] A primitive OO in R -- where next?
chuck at sharpsteen.net
Thu May 13 00:55:52 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))
> #  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.
You may want to take a look at the Proto package- it allows you to create
objects that provide a reference to "self" inside their member functions.
Hope this helps!
Undergraduate-- Environmental Resources Engineering
Humboldt State University
View this message in context: http://r.789695.n4.nabble.com/A-primitive-OO-in-R-where-next-tp2196862p2196948.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help