Choose the best duplicateSource:
Chooses the best duplicate, based on the duplicate with the smallest number of missing values. In case of ties, it picks the first duplicate, as it is the one most likely to be valid and authentic, given practice effects.
The data frame.
The ID variable for which to check for duplicates.
Logical, whether to add a column at the beginning of the data frame with the original row indices.
For the easystats equivalent, see: