distinct_se | R Documentation |
Group a data frame and add per-group indices as a column.
distinct_se(.data, groupingVars, .keep_all = FALSE)
.data |
data.frame |
groupingVars |
character vector of column names to group by. |
.keep_all |
logical, passed to dplyr::distinct. |
.data passed through distinct with groupingVars args.
distinct
datasets::mtcars %.>% distinct_se(., c("cyl", "gear"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.