Description Usage Arguments Details Value Author(s)
Find the nearest neighbour index to a grid from a matrix of point coordinates
1 | nnGpos(G, pos)
|
G |
a "gmeta6" object with grid metadata |
pos |
a two-column matrix with point coordinates |
The function assumes pos indicates [east,north] positions. The returned value is a vector indicating, for each row in pos, the nearest index in the grid refers to indexes sorted byrow=TRUE (C-like) starting by the upper-left corner and advancing row by row, from North to South.
A vector
Javier Garcia-Pintado, e-mail: j.garcia-pintado@reading.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.