extract_duplicate_records: Extract Duplicate Records

View source: R/duplicates.R

extract_duplicate_recordsR 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))

admiral documentation built on June 22, 2024, 9:06 a.m.