Description Usage Arguments Value
View source: R/match_closest_pt_rtree.R
Find closest point between to spatial point objects using rtree spatial indexing
1 | match_closest_pt_rtree(sf1, sf2, return_distance = TRUE, k = 1)
|
sf1 |
simple feature 1 (point) |
sf2 |
simple feature 2 (point). |
return_distance |
return the closest point with a vector indicating distance (m). Default = TRUE |
sf1 with closest record from sf2 attached.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.