extract_duplicate_records {admiral}R Documentation

Extract Duplicate Records

Description

Extract Duplicate Records

Usage

extract_duplicate_records(dataset, by_vars)

Arguments

dataset

A data frame

by_vars

A list of variables created using vars() identifying groups of records in which to look for duplicates

Value

A data.frame of duplicate records within dataset

Author(s)

Thomas Neitmann

See Also

Utilities for Dataset Checking: get_duplicates_dataset(), get_many_to_one_dataset(), get_one_to_many_dataset()

Examples

data(admiral_adsl)

# Duplicate the first record
adsl <- rbind(admiral_adsl[1L, ], admiral_adsl)

extract_duplicate_records(adsl, vars(USUBJID))

[Package admiral version 0.8.4 Index]