getAmat {SUMMER} | R Documentation |
Extract adjacency matrix from the map
Description
Extract adjacency matrix from the map
Usage
getAmat(geo, names)
Arguments
geo |
SpatialPolygonsDataFrame of the map |
names |
character vector of region ids to be added to the neighbours list |
Value
Spatial djacency matrix.
Author(s)
Zehang Richard Li
Examples
## Not run:
data(DemoMap)
mat <- getAmat(geo = DemoMap$geo, names = DemoMap$geo$REGNAME)
mat
DemoMap$Amat
## End(Not run)
[Package SUMMER version 1.4.0 Index]