Like dplyr::distinct()
but faster when lots of
groups are involved.
f_distinct(
.data,
...,
.keep_all = FALSE,
.order = FALSE,
.sort = deprecated(),
.by = NULL,
.cols = NULL
)
A data.frame
of distinct groups.
A data frame.
Variables used to find distinct rows.
If TRUE
then all columns of data frame are kept,
default is FALSE
.
Should the groups be calculated as ordered groups?
Setting to TRUE
here implies that the groups are returned sorted.
(Optional). A selection of columns to group by for this operation. Columns are specified using tidy-select.
(Optional) alternative to ...
that accepts
a named character vector or numeric vector.
If speed is an expensive resource, it is recommended to use this.