extract_duplicate_records {admiral}R Documentation

Extract Duplicate Records

Description

Extract Duplicate Records

Usage

extract_duplicate_records(dataset, by_vars)

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)

Value

A data.frame of duplicate records within dataset

See Also

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

Examples

data(admiral_adsl)

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

extract_duplicate_records(adsl, exprs(USUBJID))

[Package admiral version 1.0.2 Index]