Learn R Programming

wrangle (version 0.6.4)

dup.data.frame: Show records with duplicate or duplicated values of grouping variables.

Description

Shows records with duplicate or duplicated values of grouping variables.

Usage

# S3 method for data.frame
dup(x, ...)

Value

data.frame

Arguments

x

data.frame

...

optional grouping columns (named arguments are ignored)

See Also

Other dup: dup()

Examples

Run this code
library(dplyr)
dupGroups(mtcars)
dupGroups(group_by(mtcars, mpg))
dup(group_by(mtcars, mpg))

Run the code above in your browser using DataLab