Learn R Programming

Biolinv (version 0.1-2)

spatFilter: Filters a set of points based on a probability map.

Description

This function rarefies a set of points using a raster map of probabilities of a point persisting in that location.

Usage

spatFilter(points, MAP, Nclass = FALSE)

Arguments

points

data frame containing columns 'y' and 'x' (spatial coordinates on projected coordinate system).

MAP

object of class RasterLayer. Map of probability [0;1] of a point to persist in any pixel.

Nclass

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.

Value

data frame with same structure as 'points' but with less rows (points).