purrr है एक walk() in the park

purrr के साथ Functional Programming की बुनियाद

Auriel Fournier

Instructor

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 के साथ Functional Programming की बुनियाद

Plots, सामान्य तरीका

plist
[[1]]

[[2]]

walk() से प्रिंट किया गया scatter plot

walk() से प्रिंट किया गया bar plot

purrr के साथ Functional Programming की बुनियाद

plots के साथ walk()

walk(plist, print)

walk() से प्रिंट किया गया scatter plot

walk() से प्रिंट किया गया bar plot

purrr के साथ Functional Programming की बुनियाद

चलो purrr-actice करें!

purrr के साथ Functional Programming की बुनियाद

Preparing Video For Download...