7

I was reading an interesting post on R-bloggers on ''Object Oriented Programming in R using S4 Classes". The book "Statistics and Computing" written by Venables and Ripley has some chapters introducing S3 classes and S4 classes in S and R and have been useful to me in terms of understanding the concept of object oriented programming in R.

Do you know of any useful book(s) introducing Object Oriented programming in R in more details with examples like the one in the R blogger?

Sam
  • 4,357
  • 6
  • 36
  • 60
  • Not a useful question but you may want to read Chambers (2008), "Software for Data Analysis", Springer. – Dirk Eddelbuettel Aug 20 '12 at 14:59
  • Hi Dirk, Thanks for your answer. I quickly read the chapters of the book. It seems quite the same as Venable's book. What I meant by asking the question above was to find a book specifically for OOP in R (something like Java Prog books in which you could find many detailed explanations/examples on OOP). – Sam Aug 20 '12 at 15:04
  • I know of one book being written on this very topic, but it is not yet out. So as I said, Chambers (2008) plus the various web tutorials may be your best bet. – Dirk Eddelbuettel Aug 20 '12 at 15:06
  • Would you have any specific web tutorials in mind? – Sam Aug 20 '12 at 15:09
  • 1
    Your Google skills are probably as good as mine, but for S4 in particular BioC has a number of talks/course: http://www.math.ku.dk/~richard/courses/bioconductor2009/handout/17_08_Monday/OOP-handouts.pdf – Dirk Eddelbuettel Aug 20 '12 at 15:29
  • What a great website. I appreciate it Dirk. – Sam Aug 20 '12 at 15:46

1 Answers1

2

As the commenters said, "Software for Data Analysis" by John chambers is excellent. I would also recommend the R manual "Writing R Extensions", although it can get quite technical. For more introductory sources, I would look into these documents: How Methods Work by John Chambers, this S4 tutorial by Christophe Genolini, and this useful powerpoint, which is a nice high-level overview.

Eli Sander
  • 1,228
  • 1
  • 13
  • 29