Are there good tutorials on object-oriented programming in R?
It would be great if it included the following:
- how to define a class;
- differences between S3 and S4 classes;
- operator overloading (I’d like to be able to write
a+b
wherea
andb
are instances of the class I have in mind).
Answer
Hadley Wickham’s wiki on devtools is a great resource for the necessary information in a concise form. However, if you want an exhaustive resource, the R language manual’s OOP section may be helpful. I am sure more experienced members will have better suggestions.
Attribution
Source : Link , Question Author : NPE , Answer Author : Michael M