Detect duplicate candidates with evidence classes
ztTwins.RdGroups records by normalized title to nominate candidates, then judges
every pair with zotSameItem() — the strong-identity rule decides, never
the title alone.
Examples
Records <- data.table::data.table(
itemKey = c("A", "B"), title = c("Paper", "Paper"),
year = c(2026L, 2026L), author = c("Lovelace", "Lovelace"),
doi = NA_character_, md5 = NA_character_, hasFile = FALSE
)
ztTwins(Records)
#> keyA keyB match basis
#> <char> <char> <lgcl> <char>
#> 1: A B TRUE title-year-author