Converts a map in boundary format to a map in graph format.
bnd2gra(map, npoints = 2)
map in boundary format that should be converted.
integer. How many points must be shared by two polygons to be a neighbor?
Returns an adjacency matrix that represents the neighborhood structure of the map object in graph format.
BayesX Reference Manual. Available at http://www.BayesX.org.
read.bnd, read.gra, write.bnd, write.gra.
read.bnd
read.gra
write.bnd
write.gra
# NOT RUN { data("FantasyBnd") plotmap(FantasyBnd, names = TRUE) adjmat <- bnd2gra(FantasyBnd) adjmat # }
Run the code above in your browser using DataLab