This chapter is a general introduction to classes, objects, and functions in R. Now, we now know that R is an object-oriented language. Conceptually, as any other language of its kind, R has three main elements, as follows:
Classes
Objects
Functions
This chapter will cover the following topics:
Object-oriented programming (OOP) concepts in R
Vectors and arrays
Lists
Decision making and looping constructs