The magrittr and base R pipe: what's the difference? (CC241)
Channel: Riffomonas Project
Date: 2022-08-22

Did you see that R version 4.1.0 included a pipe within base R? Perhaps you're wondering how it compares to the magrittr pipe we're familiar with from the tidyverse. Pat breaks down the relevant differences and why he's sticking with the magrittr pipe we're all familiar with. He also explores the other pipes and aliases that are available through magrittr. He does all this using local weather data downloaded from NOAA in RStudio with a lot of help from the tidyverse

You can find my blog post for this episode at https://www.riffomonas.org/code_club/2022-08-22-pipes.

#magrittr #baseR #pipes #R #Rstudio #Rstats

Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at https://shop.riffomonas.org/youtube to get practice problems, tips, and insights.

If you're interested in taking an upcoming 3 day R workshop be sure to check out our schedule at https://riffomonas.org/workshops/

You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: https://www.riffomonas.org/minimalR/
General data: https://www.riffomonas.org/generalR/

0:00 Introduction
3:25 Calculating correlation with pure base R
7:21 Calculating correlation with dplyr functions
9:46 The base R pipe
12:03 The magrittr pipe
13:27 The exposition pipe
15:18 The tee pipe
17:42 Alias functions from magrittr
22:36 The assignment pipe