Skip to main content
HomeR

Course

Introduction to Writing Functions in R

Beginner
4.6+
152 reviews
Updated 05/2025
Take your R skills up a notch by learning to write efficient, reusable functions.
Start Course for Free

Included withPremium or Teams

RProgramming4 hours14 videos52 Exercises4,350 XP47,632Statement 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.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies

Course Description

Being able to write your own functions makes your analyses more readable, with fewer errors, and more reusable from project to project. Function writing will increase your productivity more than any other skill! In this course you'll learn the basics of function writing, focusing on the arguments going into the function and the return values. You'll be writing useful data science functions, and using real-world data on Wyoming tourism, stock price/earnings ratios, and grain yields.

Prerequisites

Introduction to the TidyverseIntermediate R
1

How to Write a Function

Start Chapter
2

All About Arguments

Start Chapter
3

Return Values and Scope

Start Chapter
4

Case Study on Grain Yields

Start Chapter
Introduction to Writing Functions 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

Included withPremium or Teams

Enroll now

Don’t just take our word for it

*4.6
from 152 reviews
74%
23%
1%
0%
1%
  • Hugo
    2 days

  • Carolina Judith
    2 days

    Este curso es bastante útil y retador. Lo recomiendo si deseas aprender lógica de programación en funciones en R.

  • Kris
    5 days

  • Jacob
    6 days

  • yitong
    6 days

  • Jessica
    3 days

Hugo

"Este curso es bastante útil y retador. Lo recomiendo si deseas aprender lógica de programación en funciones en R."

Carolina Judith

Kris

Join over 16 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.