purrr is a walk() in the park

purrr ile Fonksiyonel Programlamanın Temelleri

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
purrr ile Fonksiyonel Programlamanın Temelleri

Plots, the normal way

plist
[[1]]

[[2]]

Scatter plot printed with walk()

Bar plot printed with walk()

purrr ile Fonksiyonel Programlamanın Temelleri

walk() with plots

walk(plist, print)

Scatter plot printed with walk()

Bar plot printed with walk()

purrr ile Fonksiyonel Programlamanın Temelleri

Let's purrr-actice!

purrr ile Fonksiyonel Programlamanın Temelleri

Preparing Video For Download...