This commit is contained in:
Hadley Wickham 2022-08-09 16:45:24 -05:00
parent 776606f0a5
commit db5d108a78
1 changed files with 1 additions and 1 deletions

View File

@ -591,6 +591,6 @@ That's easier to express with a combination of `consecutive_id()` and `slice_hea
```{r}
df |>
group_by(id = consecutive_id(grp)) |>
group_by(id = consecutive_id(x)) |>
slice_head(n = 1)
```