Adapted from seegSDM.
Reposition observations to a location within mask if within a specified distance.
Useful for when coastal observations drop off jagged mask and similar
Usage
assign_nearest_land(dat_object, mask_object, max_distance, verbose = TRUE)
Arguments
- dat_object
data.frame
- mask_object
'SpatRaster'
- max_distance
map units if raster is projected
- verbose
provide verbose output. Default is TRUE
Value
modified data object minus observations not within specified maximum distance of mask