Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bit on native pipe #605

Merged
merged 2 commits into from
Feb 1, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 06-foundational-skills_2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@ It's common in the R programming world to name a package by choosing a word that

In this case, the author of the {magrittr} package created a series of pipe operators and then collected them in a package named after the artist Magritte.

R version 4.1.0 introduced the native pipe operator, `|>`. Like the {magrittr} pipe, it passes an object to a function so that you can chain a sequence of operations together. For straightforward use cases, both pipes behave similarly. However, you may run into differences in more complex scenarios. Since the {magrittr} pipe is tightly integrated with the tidyverse, we continue to use it in our code examples.
ivelasq marked this conversation as resolved.
Show resolved Hide resolved

### Exploring assignment vs. equality

You've learned a couple of operators already: namely the assignment operator (`<-` or `->`) and the pipe operator (`%>%`). Now you'll learn about `=` and `==`.
Expand Down
Loading