trimdupes.by.raster: Takes a set of points and a raster mask and returns a data...

View source: R/trimdupes.by.raster.R

trimdupes.by.rasterR Documentation

Takes a set of points and a raster mask and returns a data frame trimmed so that only one point is returned per grid cell in the mask raster.

Description

Takes a set of points and a raster mask and returns a data frame trimmed so that only one point is returned per grid cell in the mask raster.

Usage

trimdupes.by.raster(points, mask)

Arguments

points

A two column data frame with X and Y coordinates

mask

A raster to use as a mask for drawing points

Value

A new data frame with one point per grid cell.

Examples

pts <- iberolacerta.clade$species$monticola$presence.points
trimdupes.by.raster(pts, euro.worldclim)

ENMTools documentation built on April 11, 2023, 6:09 p.m.