Course
Object-Oriented Programming with S3 and R6 in R
AdvancedSkill Level
Updated 08/2024Start Course for Free
Included withPremium or Teams
RProgramming4 hr17 videos55 Exercises4,200 XP23,098Statement 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
Training 2 or more people?
Try DataCamp for BusinessCourse Description
Prerequisites
Introduction to Writing Functions in R1
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.
2
Using S3
S3 is a very simple object-oriented system that lets you define different behavior for functions, depending upon their input argument. This chapter explains how to use S3, and how generics and methods work.
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.
4
R6 Inheritance
Learn how to inherit from an R6 class, and how the relationship between parent and child classes works.
5
Advanced R6 Usage
Complete your mastery of R6 by learning about advanced topics such as copying by reference, shared fields, cloning objects, and finalizing objects.
Object-Oriented Programming with S3 and R6 in R
Course Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance review
Included withPremium or Teams
Enroll NowJoin 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.