Skip to contents

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().

Usage

# S3 method for class 'tbl_lazy_json'
ungroup(x, ...)

Arguments

x

A tbl_lazy_json object.

...

Columns to remove from the grouping. Accepts the same inputs as group_by() (bare names, strings, and the tidyselect helpers c(...), all_of()/any_of(), across()). If empty, all grouping is removed.

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 (FALSE) { # \dontrun{
tbl(session, "mtcars") |>
  group_by(cyl) |>
  ungroup()
} # }