R/arear.R
createNeighbourNetwork.Rd
create a neighbourhood network from touching regions in a shapefile, with additional capability to connect non touching areas where there may be bridges etc.
createNeighbourNetwork(
shape,
idVar = "code",
bridges = arear::ukconnections,
queen = FALSE,
...
)
- a sf object, if not present will be loaded from cache
- the column containing the coded identifier of the map
- a df with the following columns: name start.lat start.long end.lat end.long defining connections between non touching shapes (e.g. bridges / ferries / etc.)
- include neighbouring areas that only touch at corners, defaults to false.
- passed on to .cached() (cache control) - relevant is nocache = TRUE which prevents this from being precalculated
an edge list of ids with from and to columns