Course
Introduction to Writing Functions in R
BasicSkill Level
Updated 08/2024Start Course for Free
Included withPremium or Teams
RProgramming4 hr14 videos52 Exercises4,350 XP52,172Statement 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 the TidyverseIntermediate R1
How to Write a Function
Learn why writing your own functions is useful, how to convert a script into a function, and what order you should include the arguments.
2
All About Arguments
Learn how to set defaults for arguments, how to pass arguments between functions, and how to check that users specified arguments correctly.
3
Return Values and Scope
Learn how to return early from a function, how to return multiple values, and understand how R decides which variables exist.
4
Case Study on Grain Yields
Apply your function writing skills to a case study involving data preparation, visualization, and modeling.
Introduction to Writing Functions 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 Introduction to Writing Functions 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.