Scott Chamberlain and Ted Laderas
install.packages(c("R6", "here", "dplyr"))
- Clone/Download this Repository
- Unzip (if necessary) to a folder
- Open the
oop_talk.rproj
file in RStudio
- Intro Slides
- S3 Classes Slides - Also see
S3-objects.Rmd
andS3-objects.R
- S4 Classes Programming Notebook - Open up
S4-objects.Rmd
(R Notebook) - R6 Classes Programming Notebook - Open up
R6-objects.Rmd
(R Notebook)
Portions of this tutorial are gratefully derived from:
- Hadley Wickham: Advanced R on R's Object systems
- S4 Classes and Methods
- A practical Tutorial on S4 Programming
- S4 Classes
- Advanced R
Thanks to Jim Tyhurst for pointing out that I was mixing multiple inheritance with polymorphism. This mistake has been corrected throughout the material.
All code is licensed with a MIT License (see LICENSE.txt) All Material is CC 4.0 By (Please link to us if you use this material!)