Match candidate records against a set of records by strong identity
ztMatches.RdNominates pairs whose normalized DOI, MD5 or title coincide and judges
each pair with zotSameItem(). The result reports every nominated pair
with its verdict, as ztTwins() does within one set, so a nominated title
collision that is not a match remains visible.
Arguments
- candidates, records
Lists of records, or data.frames with one record per row, in any shape
zotIdentity()accepts.
Value
A data.table with index (position in candidates),
candidate (its key, or NA), itemKey, library, match and
basis.
Examples
Candidates <- list(list(title = "Paper", year = "2026", author = "Lovelace"))
Records <- list(
list(key = "R1", library = list(type = "user"),
data = list(title = "Paper", date = "2026",
creators = list(list(creatorType = "author",
lastName = "Lovelace")))),
list(key = "R2", data = list(title = "Paper", date = "1999"))
)
ztMatches(Candidates, Records)
#> index candidate itemKey library match basis
#> <int> <char> <char> <char> <lgcl> <char>
#> 1: 1 <NA> R1 user TRUE title-year-author
#> 2: 1 <NA> R2 <NA> FALSE none