Learn R Programming

admiral (version 1.1.1)

extract_duplicate_records: Extract Duplicate Records

Description

Extract Duplicate Records

Usage

extract_duplicate_records(dataset, by_vars)

Value

A data.frame of duplicate records within dataset

Arguments

dataset

Input dataset

The variables specified by the by_vars argument are expected to be in the dataset.

by_vars

Grouping variables

Defines groups of records in which to look for duplicates.

Permitted Values: list of variables created by exprs() e.g. exprs(USUBJID, VISIT)

See Also

Other internal: admiral-package, format.basket_select(), signal_duplicate_records()

Examples

Run this code
data(admiral_adsl)

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

extract_duplicate_records(adsl, exprs(USUBJID))

Run the code above in your browser using DataLab