Drops grouping previously set with group_by(). With no
arguments all grouping is removed; supplying column names removes only those
columns from the grouping set (partial ungroup), matching dplyr::ungroup().
Arguments
- x
A
tbl_lazy_jsonobject.- ...
Columns to remove from the grouping. Accepts the same inputs as
group_by()(bare names, strings, and the tidyselect helpersc(...),all_of()/any_of(),across()). If empty, all grouping is removed.
Value
A tbl_lazy_json object with the grouping state cleared (or trimmed
when columns are supplied), appended as a lazy compute step.
Details
Grouping is tracked as browser-side state consumed by group-aware
verbs such as summarise() and the slice() family. ungroup() appends a
step that clears or trims that state at compute time.
Examples
if (interactive()) {
tbl(session, "mtcars") |>
group_by(cyl) |>
ungroup()
}
