Phase 5 step 7 (dev/IDENTITY.md §7). Derived columns are stored per
string and per normalizer signature (md_build_text_derived()), so after
installing a new npmatch the old signature's rows are still there beside the
new one's. This compares the two before the new one is adopted:
Usage
md_normalizer_diff(
con,
old,
new = npnormalize::np_normalize_signature(),
examples = 5L
)Value
An object of class md_normalizer_diff: a list of the four data
frames above, plus old and new.
Details
coverageStrings with a row under each signature, and under both.
columnsFor every derived column, how many strings got a different value.
examplesUp to
exampleschanged strings per column, with the old and new value.groupsWhat that does to the rows of
nameandaddress: per EIN, groups that merge (rows with different old keys now share one) and groups that split (rows sharing an old key now differ), onname_keyfor names and onstreet_keyplus ZIP for addresses, and how many EINs either touches. These are the rows whose compact group, and so whose compiled reference row, would change.
Workflow: with the old npmatch installed, md_build_text_derived() has
stored the old signature. Install the new npmatch and run
md_build_text_derived() again, which adds the new signature beside it. Then
run this. Adopt the new signature by rebuilding with it; drop the old rows
only when no published tier still names it.