remove_coincident_points - PNHP/Regional_SDM GitHub Wiki

The intent of this script is to remove any background points that may fall within or very close to our presence polygons for the species we are modeling. So that means we are creating a custom set of background points for each species.

This script (1b_removeCoincidentBackgroundPts.R) does the following:

  1. loads the polygon data set, buffers it by a certain amount (30 m)
  2. loads the random background points, checks for any background points within the buffered presence polygons
  3. removes those background points
  4. writes out this new version of background points with the filename attributed with "_clean" on the end.