| getAmat | R Documentation | 
Extract adjacency matrix from the map
getAmat(geo, names)
geo | 
 SpatialPolygonsDataFrame of the map  | 
names | 
 character vector of region ids to be added to the neighbours list  | 
Spatial djacency matrix.
Zehang Richard Li
## Not run: 
data(DemoMap) 
mat <- getAmat(geo = DemoMap$geo, names = DemoMap$geo$REGNAME)
mat
DemoMap$Amat
## End(Not run) 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.