Retain only unique/distinct rows from an input df.
distinct(.df, ..., .keep_all = FALSE)
A data.frame or data.table
Columns to select before determining uniqueness. If omitted, will use all columns.
tidyselect
compatible.
Only relevant if columns are provided to ... arg. This keeps all columns, but only keeps the first row of each distinct values of columns provided to ... arg.