Skip to main content
HomeRObject-Oriented Programming with S3 and R6 in R

Object-Oriented Programming with S3 and R6 in R

Manage the complexity in your code using object-oriented programming with the S3 and R6 systems.

Start Course for Free
4 Hours17 Videos55 Exercises
19,681 LearnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
GroupTraining 2 or more people?Try DataCamp For Business

Loved by learners at thousands of companies


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.
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

R Developer

Go To Track

R Programming

Go To Track
  1. 1

    Introduction to Object-Oriented Programming

    Free

    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.

    Play Chapter Now
    What is Object-Oriented Programming?
    50 xp
    Should I OOP?
    50 xp
    You've Already Been Working With Objects
    100 xp
    The Nine Systems
    50 xp
    Which Systems Should I Use?
    50 xp
    How does R Distinguish Variables?
    50 xp
    What's my type?
    100 xp
    Assigning Classes
    50 xp
    Make it Classy (1)
    100 xp
    Make it Classy (2)
    50 xp
  2. 3

    Using R6

    Learn how to define R6 classes, and to create R6 objects. You'll also learn about the structure of R6 classes, and how to separate the user interface from the implementation details.

    Play Chapter Now
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more

In the following Tracks

R Developer

Go To Track

R Programming

Go To Track

Datasets

Cooking times (SQLite file)
Richie Cotton HeadshotRichie Cotton

Data Evangelist at DataCamp

Richie is a Data Evangelist at DataCamp. He has been using R since 2004, in the fields of proteomics, debt collection, and chemical health and safety. He has released almost 30 R packages on CRAN and Bioconductor – most famously the assertive suite of packages – as well as creating and contributing to many others. He also has written two books on R programming, Learning R and Testing R Code.
See More

What do other learners have to say?

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

Create Your Free Account

GoogleLinkedInFacebook

or

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