ds.distinct: Keep distinct/unique rows

View source: R/ds.distinct.R

ds.distinctR Documentation

Keep distinct/unique rows

Description

DataSHIELD implentation of dplyr::distinct.

Usage

ds.distinct(
  df.name = NULL,
  tidy_expr = NULL,
  .keep_all = FALSE,
  newobj = NULL,
  datasources = NULL
)

Arguments

df.name

Character specifying a serverside data frame or tibble.

tidy_expr

Optionally, list of 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.

.keep_all

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

newobj

Character specifying name for new server-side data frame.

datasources

DataSHIELD connections object.

Value

No return value, called for its side effects. An object (typically a data frame or tibble) with the name specified by newobj is created on the server.

Examples

## Not run: 
ds.distinct(
  df.name = "mtcars",
  expr = list(mpg, cyl),
  newobj = "distinct_df"
)

## End(Not run)

dsTidyverseClient documentation built on April 12, 2025, 1:55 a.m.