Description Usage Arguments Details
Lookup row numbers of nearest neighbours in a data.frame.
1 2 |
df |
data.frame, preferably indexed using
|
points |
data.frame containing coordinates to lookup neighbours of |
k |
number of neighbours to find |
ignore.colnames |
whether to interpret |
square.distance |
whether to return distances squared (default, which is faster) |
the returned row number vector has a "distance" attribute containing the (possibly squared) euclidean (L^2) distances.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.