rewrite requires max(). (#1495)
This commit is contained in:
parent
02651ef846
commit
c607d980f7
|
@ -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:
|
That means we could rewrite the above code to use the pipe:
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
diamonds |> pull(carat) |> mean()
|
diamonds |> pull(carat) |> max()
|
||||||
|
|
||||||
diamonds |> pull(cut) |> levels()
|
diamonds |> pull(cut) |> levels()
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue