nearestValue function

nearestValue: Match species location data to environmental raster layers

nearestValue: Match species location data to environmental raster layers

Obtain the nearest covariate value at each of the species locations.

nearestValue(pts, r, ...)

Arguments

  • pts: The species location data
  • r: The raster file to extract the covariates at.
  • ...: Extra arguments for knnx.index .