Description Usage Arguments Value Author(s) See Also Examples
Finds nearest polygon (country) to point(s), useful for cases where the 'sp::over' function yields NA results. Should be used with unprojected coordinates íe. lon/lat, ideally on the WGS84 ellipsoid
1 |
points |
a data frame with two columns of coordinates (first longitude, then latitude), or a SpatialPoints* object. |
global |
a data frame with two columns of coordinates (first longitude, then latitude), or a SpatialLines* object or a SpatialPolygons* object. This represents the object onto which 'points' is mapped. |
inc |
a numerical value which indicates how much the entire bounding box of 'global' shoud be segmented to find nearest countries. Defaults to 100. |
a data frame with attributes from 'global' about nearest polygon (country) to 'points'
Atreya Shankar
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.