Shorthand for {dplyr} functions called consecutively.

arrange_distinctly(data, ..., .keep_all = FALSE, .by_group = FALSE)

Arguments

data

A data.frame.

...

Additional arguments passed to internal {base}/{stats} functions.

.keep_all

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

.by_group

If TRUE, will sort first by grouping variable. Applies to grouped data frames only.

Value

A tibble.

Borrowing from the {tidyverse}

The logic for handling ... is borrowed from a reivew of the internals for tidyr::unite() and tidyr::gather().

See also

Other dplyr-combos: count_arrange, pull_distinctly