purrr is a walk() in the park

Basis van functioneel programmeren met purrr

Auriel Fournier

Instructor

Why walk()?

short_list <- list(-10, 1, 10)
short_list
[[1]]
[1] -10

[[2]]
[1] 1

[[3]]
[1] 10
walk(short_list, print)
[1] -10
[1] 1
[1] 10
Basis van functioneel programmeren met purrr

Plots, the normal way

plist
[[1]]

[[2]]

Scatter plot printed with walk()

Bar plot printed with walk()

Basis van functioneel programmeren met purrr

walk() with plots

walk(plist, print)

Scatter plot printed with walk()

Bar plot printed with walk()

Basis van functioneel programmeren met purrr

Let's purrr-actice!

Basis van functioneel programmeren met purrr

Preparing Video For Download...