This function rarefies a set of points using a raster map of probabilities of a point persisting in that location.
spatFilter(points, MAP, Nclass = FALSE)
data frame containing columns 'y' and 'x' (spatial coordinates on projected coordinate system).
object of class RasterLayer. Map of probability [0;1] of a point to persist in any pixel.
optional number of classes into which MAP is going to be binned (quantile-based). This can be useful if the probability distribution of MAP is highly skewed.
data frame with same structure as 'points' but with less rows (points).