Description Usage Arguments Value Author(s) See Also Examples
Assigns points that fall in the sea to the centre nearest adjacent coastal grid cell. It ignores points that do not have an adjacent coastal grid cell.
1 | nearestcell(dat, rst)
|
dat |
a dataframe containing fields with the following names: ID, x, y, Species, x_original, y_original, Correction, Modified, Reason, Exclude |
rst |
a raster |
dat |
a dataframe in which the new coordinates are assigned to x and y. The original values for the x- and y-coordinates are assigned to x_original and y_original. |
moved |
a dataframe with the idenifiers (ID), x- and y-coordinates (x and y) for the coordinates that were modified |
Mark Robertson and Veron Visser
missingvaluesexclude, addmainfields
1 2 3 4 | ## Not run:
dem<-raster(dem,xmn=-180, xmx=180, ymn=-60, ymx=90)
a<-nearestcell(dat, dem)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.