Description Usage Arguments Value Author(s) Examples
View source: R/polygon.to.point.R
Often in your SpatialDataFrame you have points of interest mapped like polygons. This function turn polygons in points.
1 | polygon.to.point(osm_data)
|
osm_data |
A SpatialDataFrame returned from poi.osm. |
A SpatialPointsDataFrame.
Nicola Procopio
1 2 3 4 | ### Uncomment and Run
# require(magicwrap)
# bus_stop_Milan <- poi.osm(city = "Milano")
# bus_stop_Milan_new <- polygon.to.point(osm_data = bus_stop_Milan)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.