DataSHIELD implentation of dplyr::distinct.

distinctDS(tidy_expr, df.name, .keep_all)

Arguments

tidy_expr

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 in the data frame.

df.name

A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr).

.keep_all

If TRUE, keep all variables in df.name If a combination of expr is not distinct, this keeps the first row of values.

Value

An object of the same type as df.name, typically a data frame or tibble.