ps_nearest_feature | R Documentation |
Each row in object x is bound with the closest feature in object y. Uses sf::st_nearest_feature.
ps_nearest_feature(x, y, dist_col = NULL, ...)
x |
An sf object. |
y |
An sf object. |
dist_col |
A string indicating the name of the column to save the distance in. |
... |
Not used |
sf objects have their sf (active geometry) column renamed to geometry.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.