Comparing walk() vs. no walk() outputs

Printing out lists with map() shows a lot of bracketed text in the console, which can be useful for understanding their structure, but this information is usually not important for communicating with your end users. If you need to print, using walk() prints out lists in a more compact and human-readable way, without all those brackets. walk() is also great for printing out plots without printing anything to the console.

Here, you'll be using the people_by_film dataset, which contains data derived from sw_films that has the url of each character and the film they appear in.

This exercise is part of the course

Foundations of Functional Programming with purrr

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Print normally
___