Skip to main content
HomeR

Course

Foundations of Functional Programming with purrr

IntermediateSkill Level
4.7+
83 reviews
Updated 01/2026
Learn to easily summarize and manipulate lists using the purrr package.
Start Course for Free
RProgramming4 hr13 videos44 Exercises3,750 XP11,228Statement 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

Lists can be difficult to both understand and manipulate, but they can pack a ton of information and are very powerful. In this course, you will learn to easily extract, summarize, and manipulate lists and how to export the data to your desired object, be it another list, a vector, or even something else! Throughout the course, you will work with the purrr package and a variety of datasets from the repurrrsive package, including data from Star Wars and Wes Anderson films and data collected about GitHub users and GitHub repos. Following this course, your list skills will be purrrfect!

Prerequisites

Introduction to the TidyverseIntermediate R
1

Simplifying Iteration and Lists With purrr

Iteration is a powerful way to make the computer do the work for you. It can also be an area of coding where it is easy to make lots of typos and simple mistakes. The purrr package helps simplify iteration so you can focus on the next step, instead of finding typos.
Start Chapter
2

More complex iterations

3

Troubleshooting lists with purrr

4

Problem solving with purrr

Foundations of Functional Programming with purrr
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.7
from 83 reviews
78%
22%
0%
0%
0%
  • Takuya
    16 hours ago

  • Mohammed
    19 hours ago

  • Napaporn
    2 days ago

  • Mateusz
    3 weeks ago

  • Andreas
    3 weeks ago

  • Debjit
    5 weeks ago

Mohammed

Napaporn

Andreas

FAQs

What does the purrr package do that basic R loops cannot?

The purrr package simplifies iteration with cleaner syntax, reduces common typos, works naturally with pipes, and provides consistent tools for extracting and transforming list data.

What datasets are used in this course?

You work with datasets from the repurrrsive package, including Star Wars character data, Wes Anderson film palettes, and data about GitHub users and repositories.

Do I need experience with lists in R before starting?

Basic familiarity with R lists helps, but the course is beginner level. You need intermediate R skills and tidyverse knowledge to get the most from the material.

Does the course cover troubleshooting and debugging list operations?

Yes. Chapter 3 is entirely dedicated to troubleshooting list issues with purrr, teaching you to identify and fix problems that commonly arise when working with complex list structures.

Will I learn to use purrr for running models and simulating data?

Yes. Chapter 2 shows how purrr goes beyond simple loops by demonstrating its use for running models, simulating data, and creating nested iteration patterns.

Join over 19 million learners and start Foundations of Functional Programming with purrr 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.