rewrite requires max(). (#1495)

This commit is contained in:
Mitsuo Shiota 2023-07-16 21:27:55 +09:00 committed by GitHub
parent 02651ef846
commit c607d980f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()
```