nearestValue: Match species location data to environmental raster layers
Obtain the nearest covariate value at each of the species locations.
nearestValue(pts, r, ...)
pts
: The species location datar
: The raster file to extract the covariates at....
: Extra arguments for knnx.index .Useful links