ABSTRACT

This chapter introduces the object-oriented programming (OOP) ideas in R in detail. It helps to understand OOP in R in depth and to be able to establish complex business applications. Guided by industrial developments, R will develop to large-scaled enterprise applications, so the OOP will be an important direction for R's development. The object-oriented idea is a program design specification and a methodology of programming. The object in object oriented means the collection of classes. With the development of computer technologies, the computer is used to solve more and more complex problems. Everything is an object. Encapsulation: encapsulate the objective things into the abstractive classes. R language is mainly used for statistical computing and the code size is not large, with just decades or hundreds of lines, which makes use of the procedural programming technique to fulfill tasks well. The OOP has been widely used in the era of C++/Java.