View source: R/verbs_utility.R
| distinct | R Documentation |
Keep distinct/unique rows
distinct(.data, ..., .keep_all = FALSE)
.data |
A |
... |
Column names (unquoted). If empty, uses all columns. |
.keep_all |
If |
Uses hash-based grouping with zero aggregations. When .keep_all = TRUE
with a column subset, falls back to R's duplicated() with a message.
This is a materializing operation.
A vectra_node with unique rows.
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
tbl(f) |> distinct(cyl) |> collect()
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.