create a neighbourhood network from touching regions in a shapefile, with additional capability to connect non touching areas where there may be bridges etc.
Source: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.
Usage
createNeighbourNetwork(
shape,
idVar = "code",
bridges = arear::ukconnections,
queen = FALSE,
...
)
Arguments
- shape
- a sf object, if not present will be loaded from cache
- idVar
- the column containing the coded identifier of the map
- bridges
- 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.)
- queen
- include neighbouring areas that only touch at corners, defaults to false.
- ...
Named arguments passed on to
.cached
.nocache
an option to defeat the caching which can be set globally as options("cache.disable"=TRUE)