Advanced Object-oriented Programming In R: Stat... -
S3 is R’s original, informal OOP system. It is essentially a list with a "class" attribute.
Requires an external dependency; can lead to "non-idiomatic" R code if overused. 4. Reference Classes (RC): The Internal Alternative Advanced Object-Oriented Programming in R: Stat...
Massive, interconnected systems like the Bioconductor project where data integrity is paramount. S3 is R’s original, informal OOP system
Methods belong to the object . You call them using the $ operator (e.g., my_object$do_something() ). The Core Systems 1. S3: The Pragmatic Standard S3 is R’s original
Reference Classes are built into base R and function similarly to R6 but are built on top of S4.