March 2017
Beginner
352 pages
10h 24m
English
© Thomas Mailund 2017
Thomas Mailund, Beginning Data Science in R, 10.1007/978-1-4842-2671-1_10
Thomas Mailund1
(1)Aarhus, Denmark
This chapter looks at R’s flavor of object oriented programming. Actually, R has three different systems for object oriented programming: S3, S4, and RC. We will only look at S3, which is the simplest and (I believe) the most widely used.
Object orientation in S3 is quite different from what you might have seen in Java or Python. Naturally so, since data in R is immutable and the underlying model in OO in languages such as Java and Python is that you have objects with states that you can call methods to change the state. You don’t have a state ...
Read now
Unlock full access