spThin: an R package for spatial thinning of species occurrence records for use in ecological niche modelsMatthew E. Aiello‐Lammens, Robert A. Boria, Aleksandar Radosavljevic, Bruno Vilela, Robert P. Anderson
- Ecology, Evolution, Behavior and Systematics
Spatial thinning of species occurrence records can help address problems associated with spatial sampling biases. Ideally, thinning removes the fewest records necessary to substantially reduce the effects of sampling bias, while simultaneously retaining the greatest amount of useful information. Spatial thinning can be done manually; however, this is prohibitively time consuming for large datasets. Using a randomization approach, the ‘thin’ function in the spThin R package returns a dataset with the maximum number of records for a given thinning distance, when run for sufficient iterations. We here provide a worked example for the Caribbean spiny pocket mouse, where the results obtained match those of manual thinning.