Description Usage Arguments Value
Accepts two sf objects x and y and determines the nearest feature in y for every feature in x.
1 | find_nearest(x, y, y.name = "y")
|
x |
An sf object containing the features for which you want find the nearest features in y |
y |
An sf object containing features to be assigned to x |
y.name |
Characters prepended to the y features in the returned datatable |
Returns a dataframe containing all rows from x with the corresponding nearest feature from y. A column representing the distance between the features is also included. Note that this object contains no geometry.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.