Functions for Spatial Thinning of Species Occurrence Records for