distinct: Select unique rows or unique combinations of variables

Description Usage Arguments Details Value See Also Examples

Description

Select unique rows or unique combinations of variables

Usage

1
2
3
distinct(.self, ..., auto_compact = NULL)

distinct_(.self, ..., .dots, auto_compact = NULL)

Arguments

.self

Data frame

...

Additional parameters

auto_compact

Compact data after operation

.dots

Workaround for non-standard evaluation

Details

When called with no additional parameters, distinct(), this function will filter out any non-unique rows in the specified data frame. Specifying column names will limit the uniqueness checks to only those columns, i.e. distinct(G) will limit the data frame to only have unique values of G.

Note that if data are grouped, then this will find unique rows or combinations for each group.

Value

Data frame

See Also

Other row manipulations: arrange, filter, group_by, slice

Examples

1
2
3
dat <- Multiplyr (x=1:100, G=rep(c("A", "B", "C", "D"), each=25))
dat %>% distinct(G)
dat %>% shutdown()

jeblundell/multiplyr documentation built on May 19, 2019, 12:39 a.m.