Paul Love has completed

# Foundations of Functional Programming with purrr

4 hours
3,750 XP

## 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!

### .css-1goj2uy{margin-right:8px;}Group.css-gnv7tt{font-size:20px;font-weight:700;white-space:nowrap;}.css-12nwtlk{box-sizing:border-box;margin:0;min-width:0;color:#05192D;font-size:16px;line-height:1.5;font-size:20px;font-weight:700;white-space:nowrap;}Training 2 or more people?

Try DataCamp for BusinessFor a bespoke solution book a demo.
1. 1

### Simplifying Iteration and Lists With purrr

Free

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.

Play Chapter Now
The power of iteration
50 xp
Introduction to iteration
100 xp
Iteration with purrr
100 xp
More iteration with for loops
100 xp
More iteration with purrr
100 xp
Subsetting lists
50 xp
List structure
100 xp
Subsetting list elements
100 xp
The many flavors of map()
50 xp
map() argument alternatives
100 xp
map_*
100 xp
2. 2

### More complex iterations

purrr is much more than a for loop; it works well with pipes, we can use it to run models and simulate data, and make nested loops!

3. 3

### Troubleshooting lists with purrr

Like anything in R, understanding how to troubleshoot issues is an important skill set. This can be particularly important with lists, where finding the problem can be tricky.

4. 4

### Problem solving with purrr

Now that you have the building blocks, we will start tackling some more complex data problems with purrr.

In the following tracks

Intermediate Tidyverse Toolbox

Collaborators

DataCamp Content Creator

Course Instructor

DataCamp offers interactive R, Python, Spreadsheets, SQL and shell courses. All on topics in data science, statistics, and machine learning. Learn from a team of expert teachers in the comfort of your browser with video lessons and fun coding challenges and projects.
See More