Skip to main content
HomeR

Course

Object-Oriented Programming with S3 and R6 in R

AdvancedSkill Level
4.8+
263 reviews
Updated 08/2024
Manage the complexity in your code using object-oriented programming with the S3 and R6 systems.
Start Course for Free
RProgramming4 hr17 videos55 Exercises4,200 XP23,259Statement of Accomplishment

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Group

Training 2 or more people?

Try DataCamp for Business

Course Description

Object-oriented programming (OOP) lets you specify relationships between functions and the objects that they can act on, helping you manage complexity in your code. This is an intermediate level course, providing an introduction to OOP, using the S3 and R6 systems. S3 is a great day-to-day R programming tool that simplifies some of the functions that you write. R6 is especially useful for industry-specific analyses, working with web APIs, and building GUIs.

Prerequisites

Introduction to Writing Functions in R
1

Introduction to Object-Oriented Programming

Learn what object-oriented programming (OOP) consists of, when to use it, and what OOP systems are available in R. You'll also learn how R identifies different types of variable, using classes, types, and modes.
Start Chapter
2

Using S3

3

Using R6

4

R6 Inheritance

5

Advanced R6 Usage

Object-Oriented Programming with S3 and R6 in R
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
Enroll Now

Don’t just take our word for it

*4.8
from 263 reviews
83%
15%
2%
0%
0%
  • Cristian
    4 days ago

  • Carmen
    5 days ago

  • Kelvin
    last week

  • Brian
    last week

  • Napaporn
    last week

  • alexandrina
    last week

Cristian

Napaporn

alexandrina

FAQs

What is the difference between S3 and R6 object systems covered in this course?

S3 is a simple system that changes function behavior based on input type, useful for everyday R programming. R6 supports encapsulation and is better suited for APIs, GUIs, and industry applications.

Do I need prior experience with object-oriented programming?

No prior OOP experience is needed. The course provides an introduction to OOP concepts before teaching you how to apply them using the S3 and R6 systems in R.

What practical applications of R6 does the course demonstrate?

R6 is shown to be useful for industry-specific analyses, working with web APIs, and building graphical user interfaces, giving you tools for professional R development.

How many chapters does this course have and how long does it take?

The course has 5 chapters with 55 exercises. Most learners complete it in about 3.4 hours, though the estimated time is 240 minutes.

What prerequisites are recommended for this course?

You should complete Introduction to R, Intermediate R, Introduction to Writing Functions in R, and Introduction to the Tidyverse before taking this intermediate-level course.

Join over 19 million learners and start Object-Oriented Programming with S3 and R6 in R today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.