Methods Lab · Update ·

Data Check shows where to review duplicates in a CSV

In a visit-level file, the same participant can appear several times. Data Check now lists row numbers alongside the duplicate counts so you can find the records that need a closer look.

Synthetic Data Check example. With ID and visit as the key, rows 12 and 121 are identical. The same ID can appear at several visits.

What the row details show

The Duplicates and rules tab lists identical rows, rows that share a complete key and rows with a missing key field. A row can appear in more than one category. For example, two identical rows with a complete key also share that key. Rows with incomplete keys are listed separately and excluded from the repeated-key count.

Row numbers follow the order of the data records, starting at 1 and excluding the header. Each check shows up to 100 row numbers and indicates when there are more. Counts include all affected records. The downloadable HTML report includes the same details.

How the key changes the result

The built-in synthetic example contains 60 fictitious IDs, two visits per ID and one added copy, for a total of 121 rows. Checking the ID alone flags all 121 rows. If the file is meant to have one row per participant and visit, combining id_sintetico and visita leaves two rows with a repeated key: rows 12 and 121. These rows match on all fields read from the file.

In a real file, the unit of record depends on the study design. If a visit can include several measurements, the key may need another field, such as test type. Check how the records are defined and where they came from before correcting them. Data Check keeps the original file intact.

Reproduce the example in the guide to keys and duplicates.