
Exclude Candidate Sites Within a Distance Buffer of Target Sites
Source:R/alternative_sites.R
ss_alt_filter_buffer.RdRemoves candidate sites that fall within min_distance of any target
(e.g. inaccessible) site, ensuring spatial separation between original
and alternative sampling locations.
Examples
candidates <- data.frame(x = c(0, 100, 500), y = c(0, 100, 500))
targets <- data.frame(x = 0, y = 0)
ss_alt_filter_buffer(candidates, targets, min_distance = 200)
#> x y
#> 3 500 500