CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Foundations of Functional Programming with purrr

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Print normally
___
Modifier et exécuter le code