arrange_distinctly: 'dplyr::distinct()' + 'dplyr::arrange()'

Description Usage Arguments Value Borrowing from the {tidyverse} See Also

View source: R/dplyr-combos.R

Description

Shorthand for {dplyr} functions called consecutively.

Usage

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

Arguments

data

A data.frame.

...

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. 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 review of the internals for tidyr::unite() and tidyr::gather().

See Also

Other dplyr-combos: count_arrange, pull_distinctly


tonyelhabr/tetidy documentation built on May 29, 2019, 3:18 p.m.