I believe the best way to read my blog on this topic is to follow along with my compiled R script, where I used R comments to narrate as I explored the questions for this week. S3 and S4 objects, while a confusing subject, is very important for understanding object oriented programing with R.
This week, we were asked to anwser:
- How do you tell what OO system (S3 vs. S4) an object is associated with?
- How do you determine the base type (like integer or list) of an object?
- What is a generic function?
- What are the main differences between S3 and S4?
- In your GitHub, create two examples of S3 and S4.
All of my answers to these questions can be found in the compiled report below: They can also be found on my Github in my R script
As always, the link to my GitHub: here
Leave a comment