Learn R Programming

dsTidyverse (version 1.0.4)

distinctDS: Keep distinct/unique rows

Description

DataSHIELD implentation of dplyr::distinct.

Usage

distinctDS(tidy_expr, df.name, .keep_all)

Value

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

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.