distinct: Select distinct/unique rows in data.table
Description
Analogous function for distinct in dplyr
Usage
distinct(.data, ..., .keep_all = FALSE)
Value
data.table
Arguments
.data
data.table
...
Optional variables to use when determining uniqueness.
If there are multiple rows for a given combination of inputs,
only the first row will be preserved.
If omitted, will use all variables.
.keep_all
If TRUE, keep all variables in data.table. If a combination of ... is not distinct,
this keeps the first row of values.