powered by
Keep distinct/unique rows
distinct(.data, ..., .keep_all = FALSE)
A vectra_node with unique rows.
vectra_node
A vectra_node object.
Column names (unquoted). If empty, uses all columns.
If TRUE, keep all columns (not just those in ...).
TRUE
...
Uses hash-based grouping with zero aggregations. When .keep_all = TRUE with a column subset, falls back to R's duplicated() with a message.
.keep_all = TRUE
duplicated()
This is a materializing operation.
f <- tempfile(fileext = ".vtr") write_vtr(mtcars, f) tbl(f) |> distinct(cyl) |> collect() unlink(f)
Run the code above in your browser using DataLab