Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Foundations of Functional Programming with purrr

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Print normally
___
Code bewerken en uitvoeren