duplicates_by: Find all duplicate rows by chosen columns.

View source: R/duplicates_by.R

duplicates_byR Documentation

Find all duplicate rows by chosen columns.

Description

Note that this function generates all duplicate rows including the first one in each duplicate group.

Usage

duplicates_by(data, ..., sort = TRUE)

Arguments

data

a tbl

...

Variables to check duplicates by.

sort

When sort=TRUE as in the default, the output will be sorted by the variables provided in ...

Examples

library(tidyverse)
iris %>% duplicates_by(Sepal.Length, Sepal.Width)

sleeubc/sanghoon documentation built on April 10, 2022, 5:30 p.m.