dup_check: dup_check

Description Usage Arguments Author(s) Examples

View source: R/dup_check.R

Description

This function finds duplicates and returns a boolean vector. Each instance of a duplicate is marked as true, rather only the second instance.

Usage

1
dup_check(xset, variable)

Arguments

xset

The dataframe

variable

The variable that will be examined for duplicates. This should be enclosed in quotation marks.

Author(s)

J.W. Rozelle

Examples

1
2
3
4
# Unfortunately - I haven't created a dataset yet to demo this. However, this is the loop in practice.
# Check for duplicate female ID's
female.df$dup_femID <- NA
female.df$dup_femID <- dup_check(female.df, "clus_FemaleID")

jwilliamrozelle/figured documentation built on June 10, 2021, 5:32 p.m.