Learn R Programming

seplyr (version 1.0.4)

distinct_se: Standard interface for distinct.

Description

Group a data frame and add per-group indices as a column.

Usage

distinct_se(.data, groupingVars, .keep_all = FALSE)

Arguments

.data

data.frame

groupingVars

character vector of column names to group by.

.keep_all

logical, passed to dplyr::distinct.

Value

.data passed through distinct with groupingVars args.

See Also

distinct

Examples

Run this code
# NOT RUN {

datasets::mtcars %.>% distinct_se(., c("cyl", "gear"))

# }

Run the code above in your browser using DataLab