Evaluate event duplication

evaluate_duplicate(x = NULL)

Arguments

x

extracted dataitem returned by [extract()]

Value

a tibble with (potential) error codes ready for import into the `events_quality` table.

Details

Evaluates events as being suspicious for being duplicated or not. This is trained on the datetime of an object (if 2d), and looks for two events that are perfectly co-incident. 1d events are checked for raw duplication, since they should only occur once per episode anyway. Note, when 2 values are deemed to be duplicates, the one that first appears in the database is cleared as verified, while the second (or more) is/are not.