Get access to all lessons in this course.
- Welcome to Fundamentals of R
- Update Everything
- Start a New Project
-
Data Wrangling and Analysis
- The Tidyverse
- Pipes
- select()
- mutate()
- filter()
- summarize()
- group_by() and summarize()
- arrange()
- Create a New Data Frame
- Bring it All Together (Data Wrangling)
-
Data Visualization
- The Grammar of Graphics
- Scatterplots
- Histograms
- Bar Charts
- Setting color and fill Aesthetic Properties
- Setting color and fill Scales
- Setting x and y Scales
- Adding Text to Plots
- Plot Labels
- Themes
- Facets
- Save Plots
- Bring it All Together (Data Visualization)
-
Quarto
- Quarto Overview
- YAML
- Text
- Code Chunks
- Tips for Working with Quarto
- Bring It All Together (Quarto)
-
Wrapping Up
- An Important Workflow Tip
Fundamentals of R
Pipes
This lesson is locked
This lesson is called Pipes, part of the Fundamentals of R course. This lesson is called Pipes, part of the Fundamentals of R course.
If the video is not playing correctly, you can watch it in a new window
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
Make sure that you have R 4.1 or higher
Switch to using the native pipe by default
Confirm that the keyboard shortcut works to insert a native pipe
You need to be signed-in to comment on this post. Login.
Rachel Udow
March 17, 2024
First: CTRL + SHIFT + M is a gamechanger for me -- thank you! Second, I wanted to ask, why is there a new native pipe in R, and what is the reason we are using the new native pipe vs. the tidyverse pipe in this course? I currently use the tidyverse pipe in my day-to-day work, so am just curious about whether I should be thinking about switching which pipe I use in that context, too. Thanks!
Libby Heeren Coach
March 17, 2024
HI! Piping has become so handy even outside of the tidyverse that adding a native pipe to R allows it to be used (when not using any of the tidyverse packages) without loading the {magrittr} package (which is the package that gives tidyverse it's %>% pipe). Adding the native pipe means you can load no packages at all and still use piping 🥳 The pipes are (mostly) interchangeable, so I don't think there's a need to switch over old code, but if you'd like to start using the native pipe, you'll be used to it in no time. It took me a while to switch, but I've experienced no big snags.
Rachel Udow
March 19, 2024
Thanks, Libby!