Description Usage Arguments Value Author(s) See Also Examples
For a given set of points and locations identified by 2D coordinates this function finds the nearest location of each point
1 |
points |
a matrix, data-frame or list with the 2D coordinates of a set of points for which you want to find the nearest location. |
locations |
a matrix, data-frame or list with the 2D coordinates of a set of locations. |
positions |
logical defining what to be returned. If |
If positions = FALSE
the function returns
a matrix, data-frame or list of the same type and size
as the object provided in the argument points
with the
coordinates of the nearest locations.
If positions = FALSE
the function returns a vector with the
position of the nearest points in the locations
object.
Paulo J. Ribeiro Jr. paulojus@leg.ufpr.br,
Peter J. Diggle p.diggle@lancaster.ac.uk.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.