Description Usage Arguments Details
Lookup nearest neighbours data 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) |
df.cols |
columns from df to return (defaults to all) |
points.cols |
columns from points to return
(defaults to any not used for lookup) |
distance.name |
column name containing distances in
result, |
The returned data frame contains all columns specified in
df.cols and pointer.cols as well as a column with distances
if distance.name
is non-null.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.