From the course: R for Data Science: Lunch Break Lessons

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

R7 OOP: Introduction

R7 OOP: Introduction

- [Instructor] R is what's known as a functional programming language, in contrast to procedural, or object-oriented. Now believe it or not, R does have the ability to define objects. It's not commonly used, and the current methods are somewhat awkward, and probably not what most people think of as object-oriented programming. Very soon the R consortium will be releasing something called R7, which is an object-oriented programming structure that's much more familiar to folks who are used to object-oriented languages such as Python or C++. I'm going to take a couple of sessions to explain how this works, what it looks like, and how to define an R7 object-oriented programming structure. Let's start with the code in front of us. If you're going to use R, for now, you need to install a package as shown in line four called remotes, and I've already done that. Then you need to use remotes to install from GitHub, and…

Contents