powered by
Extract Duplicate Records
extract_duplicate_records(dataset, by_vars)
A data.frame of duplicate records within dataset
data.frame
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)
exprs()
exprs(USUBJID, VISIT)
Other internal: admiral-package, format.basket_select(), signal_duplicate_records()
admiral-package
format.basket_select()
signal_duplicate_records()
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