Slide 1

Slide 1 text

http://stat545.com https://ubc-mds.github.io random slides we refer to in the midst of live coding %>%

Slide 2

Slide 2 text

@JennyBryan @jennybc @STAT545 http://stat545.com Dr. Jennifer (Jenny) Bryan Department of Statistics University of British Columbia [email protected]

Slide 3

Slide 3 text

filter(gapminder, country == “Canada”) gapminder %>% filter (country == “Canada”) mean(x) x %>% mean()

Slide 4

Slide 4 text

whatever(arg1, arg2, arg3, …) arg1 %>% whatever(arg2, arg3, …)

Slide 5

Slide 5 text

from various Hadley Wickham talks

Slide 6

Slide 6 text

the magrittr package provides %>% which is used heavily and re-exported in the tidy verse https://github.com/smbache/magrittr https://cran.r-project.org/web/packages/magrittr/index.html https://github.com/hadley/tidyverse https://cran.r-project.org/web/packages/tidyverse/index.html