
Calculate Intraspecific Pairwise Colony Distances as sf LINESTRINGs
calculate_intraspecific_allee_dist.RdComputes intraspecific pairwise distances between coral colony centroids and derives
edge-to-edge and maximum distances. Results are returned as sf LINESTRINGs connecting colony centroids.
Value
An sf object of LINESTRINGs with columns:
- species
Species name.
- id_from
ID of origin colony.
- id_to
ID of target colony.
- centroid_distance
Distance between colony centroids (in CRS units).
- colony_distance
Edge-to-edge distance (centroid distance minus radii).
- max_distance
Maximum distance including both radii.
- status
Label passed to
labelargument.