Description Usage Arguments Value Examples
View source: R/get_nearest_polygon.R
gets the nearest polygon from a long lat point in a given SF dataframe
1 | get_nearest_polygon(sf_dataframe, long, lat)
|
sf_dataframe |
A dataframe containing polygons to choose from |
long |
The longitude of the point |
lat |
The latitude of the point |
A 1*N SF dataframe containing the closest polygon
1 2 3 4 | ## Not run:
polygon <- get_nearest_polygon(town, adress_data$longitude, adress_data$latitude)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.