Extract adjacency matrix from the map
Arguments
- geo
SpatialPolygonsDataFrame of the map
- names
character vector of region ids to be added to the neighbours list
Examples
if (FALSE) {
data(DemoMap)
mat <- getAmat(geo = DemoMap$geo, names = DemoMap$geo$REGNAME)
mat
DemoMap$Amat
}