Skip to content
Open
Changes from all commits
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
8 changes: 8 additions & 0 deletions pipes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,18 @@ iris |>
summarise(width = Sepal.Width, .by = Species) |>
arrange(width)

iris |>
_$Sepal.Width |>
append(pi, values = _)

# Bad
iris %>%
summarise(width = Sepal.Width, .by = Species) %>%
arrange(width)

iris %>%
.$Sepal.Width %>%
append(pi, .)
```

As of R 4.3.0, the base pipe provides all the features from magrittr that we recommend using.
Loading