Skip to content
R for the Rest of Us: A Statistics-Free Introduction is out now! Check it out →
R for the Rest of Us Logo

This lesson is locked

Get access to all lessons in this 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

  1. Make sure that you have R 4.1 or higher

  2. Switch to using the native pipe by default

  3. Confirm that the keyboard shortcut works to insert a native pipe

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Rachel Udow

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

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

Rachel Udow

March 19, 2024

Thanks, Libby!