dupes_rm: Remove duplicate entries

Description Usage Arguments Details Value Examples

Description

Takes output of dupes_find, and returns a set of records with duplicate entries removed.

Usage

1
dupes_rm(x, db_pref = NULL, ignore_IDs = NULL)

Arguments

x

The output of dupes_find

db_pref

The preferred database for a reference.

ignore_IDs

A set of match IDs that will be ignored when removing duplicate records. These should be identified by manually inspecting the output of dupes_return.

Details

After running dupes_find, duplicate sets of records will contain identical match IDs specified in the match_ID column. This function will remove all but one entry from each set of duplicates. The preserved entry is selected based on the user's preferred database (db_pref) and the entry within the duplicate set with the least number of blank cells.

Value

An updated version of x, with duplicate records removed.

Examples

1
2
3
4
5
6
7
## Not run: 
test <- rbind(form_mm_recs, form_mm_recs)
test <- dupes_find(test, c(1, 3))
dupes <- dupes_return(test)
out <- dupes_rm(test)

## End(Not run)

graggsd/sysreviewR documentation built on May 16, 2019, 2:52 a.m.