find_dups: Find duplicates

View source: R/fns.R

find_dupsR Documentation

Find duplicates

Description

Filter to rows where the specified variable has at least one dulicate. Useful for identifying problematic cases when 1:1 joins come out at 1:many.

Usage

find_dups(data, var, order_by = TRUE)

Arguments

data

a data frame

var

a variable in that data frame

order_by

if TRUE, order the result by the specified variable

Examples

mtcars |> find_dups(mpg)

andrewGhazi/geryon documentation built on April 14, 2025, 3:51 p.m.