English

GeoThinneR: An R Package for Efficient Spatial Thinning of Species Occurrences and Point Data

Populations and Evolution 2025-05-14 v1 Applications

Abstract

In this paper we present GeoThinneR, an R package for efficient and flexible spatial thinning of species occurrence data. Spatial thinning is a widely used preprocessing step in species distribution modeling (SDM) that can help reduce sampling bias, but existing R implementations rely on brute-force algorithms that scale poorly with large datasets. GeoThinneR implements multiple thinning approaches, including ensuring a minimum distance between points, subsampling points on a grid, and filtering based on decimal precision. To handle large datasets, it introduces two optimized algorithms based on local kd-trees and adaptive neighbor estimation, which greatly reduce memory usage and execution time. Additional functionalities such as group-wise thinning and point prioritization are included to facilitate its use in SDM workflows. We here provide performance benchmarks using both simulated and real-world data to demonstrate substantial performance improvements over existing tools.

Keywords

Cite

@article{arxiv.2505.07867,
  title  = {GeoThinneR: An R Package for Efficient Spatial Thinning of Species Occurrences and Point Data},
  author = {J. Mestre-Tomás},
  journal= {arXiv preprint arXiv:2505.07867},
  year   = {2025}
}