closest_dup: Find the closest duplicate appearance based on coordinates

View source: R/processExtras.R

closest_dupR Documentation

Find the closest duplicate appearance based on coordinates

Description

Find the closest duplicate appearance based on coordinates

Usage

closest_dup(target_core, x0, y0, dup_xy_list, dup_xy)

Arguments

target_core

The coreID of the individual to find.

x0

The x-coordinate of the reference point.

y0

The y-coordinate of the reference point.

dup_xy_list

A list of data.frames, each containing duplicate appearances for a specific coreID with columns: 'personID', 'x_pos', 'y_pos', and 'total_blue'.

dup_xy

A data.frame containing all duplicate appearances with columns: 'personID', 'coreID', 'x_pos', 'y_pos', and 'total_blue'.

Value

The personID of the closest duplicate appearance.


ggpedigree documentation built on March 16, 2026, 9:07 a.m.