Description Usage Arguments Details Value
View source: R/nearest-point.R
Joins x to y based on minimising the euclidean distance between their X and Y coordinates. As a result each row in x is assigned the closest row in y.
1 | nearest_point(x, y, suffix = c(".x", ".y"))
|
x |
A data frame with the columns X and Y. |
y |
A data frame with the columns X and Y. |
suffix |
If there are non-joined duplicate variables in |
Note the convert_proj function can be used to ensure the X and Y coordinates are in the same projection.
The joined data frame with the additional column Distance indicating the distance between the X and Y coordinates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.