Can use both pipes

This commit is contained in:
Hadley Wickham 2022-04-27 09:05:56 -05:00
parent 7d02fba904
commit cb4cda5ae4
1 changed files with 2 additions and 0 deletions

View File

@ -112,3 +112,5 @@ But they're still good to know about even if you've never used `%>%` because you
- `%>%` allows you to drop the parentheses when calling a function with no other arguments; `|>` always requires the parentheses.
- `%>%` allows you to start a pipe with `.` to create a function rather than immediately executing the pipe; this is not supported by the base pipe.
Luckily there's no need to commit entirely to one pipe or the other --- you can use the base pipe for the majority of cases where it's sufficient, and use the magrittr pipe when you really need its special features.