rnet_connected | R Documentation |
This function takes an sf object representing a road network and returns only the parts of the network that are in the largest group.
rnet_connected(rnet)
rnet |
An sf object representing a road network |
An sf object representing the largest group in the network
rnet <- rnet_breakup_vertices(stplanr::osm_net_example)
rnet_largest_group <- rnet_connected(rnet)
plot(rnet$geometry)
plot(rnet_largest_group$geometry)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.