Skip to contents

Computes centroid-to-centroid, edge-to-edge, and max-distance metrics for colonies within each species, and returns a single combined data frame with a status column indicating the source subset.

Usage

calculate_allee_effects(
  populations,
  metric = "centroid_distance",
  label,
  dist = Inf,
  ...
)

Arguments

populations

An sf object with columns: id, species, status, width, and geometry.

Value

A single tibble with columns: species, id_from, id_to, centroid_distance, colony_distance, max_distance, status.