Skip to content

Commit

Permalink
rewrite requires max(). (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuoxv authored Jul 16, 2023
1 parent 02651ef commit c607d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base-R.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ dplyr also provides an equivalent to `[[`/`$` that we didn't mention in @sec-dat
That means we could rewrite the above code to use the pipe:

```{r}
diamonds |> pull(carat) |> mean()
diamonds |> pull(carat) |> max()
diamonds |> pull(cut) |> levels()
```
Expand Down

0 comments on commit c607d98

Please sign in to comment.