% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/verbs_utility.R
\name{distinct}
\alias{distinct}
\title{Keep distinct/unique rows}
\usage{
distinct(.data, ..., .keep_all = FALSE)
}
\arguments{
\item{.data}{A \code{vectra_node} object.}

\item{...}{Column names (unquoted). If empty, uses all columns.}

\item{.keep_all}{If \code{TRUE}, keep all columns (not just those in \code{...}).}
}
\value{
A \code{vectra_node} with unique rows.
}
\description{
Keep distinct/unique rows
}
\details{
Uses hash-based grouping with zero aggregations. When \code{.keep_all = TRUE}
with a column subset, falls back to R's \code{duplicated()} with a message.

This is a materializing operation.
}
\examples{
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
tbl(f) |> distinct(cyl) |> collect()
unlink(f)

}
