Skip to contents

Groups records by normalized title to nominate candidates, then judges every pair with zotSameItem() — the strong-identity rule decides, never the title alone.

Usage

ztTwins(records)

Arguments

records

A data.table with itemKey and any of title, year, author, doi, md5, hasFile.

Value

A data.table of pairs: keyA, keyB, match, basis.

See also

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