Description Usage Arguments Examples
These scoped variants of distinct() extract distinct rows by a
selection of variables. Like distinct(), you can modify the
variables before ordering with funs().
1 2 3 4 5  | distinct_all(.tbl, .funs = list(), ...)
distinct_at(.tbl, .vars, .funs = list(), ...)
distinct_if(.tbl, .predicate, .funs = list(), ...)
 | 
.tbl | 
 A   | 
.funs | 
 List of function calls generated by  Bare formulas are passed to   | 
... | 
 Additional arguments for the function calls in
  | 
.vars | 
 A list of columns generated by   | 
.predicate | 
 A predicate function to be applied to the columns
or a logical vector. The variables for which   | 
1 2 3 4 5 6 7 8 9 10  | df <- data_frame(x = rep(2:5, each = 2) / 2, y = rep(2:3, each = 4) / 2)
df
distinct_all(df)
distinct_at(df, vars(x,y))
distinct_if(df, is.numeric)
# You can supply a function that will be applied before extracting the distinct values
# The variables of the sorted tibble keep their original values.
distinct_all(df, round)
arrange_all(df, funs(round(.)))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.