diff --git a/logicals.qmd b/logicals.qmd index e00a00b..907e196 100644 --- a/logicals.qmd +++ b/logicals.qmd @@ -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) ```