nearestcell: Assigns points that fall into the sea to the centre of the...

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1

Arguments

dat

a dataframe containing fields with the following names: ID, x, y, Species, x_original, y_original, Correction, Modified, Reason, Exclude

rst

a raster

Value

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

Author(s)

Mark Robertson and Veron Visser

See Also

missingvaluesexclude, addmainfields

Examples

1
2
3
4
## Not run: 
dem<-raster(dem,xmn=-180, xmx=180, ymn=-60, ymx=90)
a<-nearestcell(dat, dem)
## End(Not run)

biogeo documentation built on May 1, 2019, 8:05 p.m.