Relink IDs to closest duplicate appearance based on coordinates
relink(df, col, dup_xy_list, dup_xy)A modified `df` data.frame with updated IDs in the specified column.
A data.frame containing pedigree layout info with columns including: `x_pos`, `y_pos`, and the target column to relink.
Character; name of the column to relink (e.g., `"momID"`, `dadID"`, `spouseID"`).
A list of data.frames, each containing duplicate appearances for a specific coreID with columns: `personID`, `x_pos`, `y_pos`, and `total_blue`.
A data.frame containing all duplicate appearances with columns: `personID`, `coreID`, `x_pos`, `y_pos`, and `total_blue`.