powered by
Converts a map in boundary format to a map in graph format.
bnd2gra(map)
Returns an adjacency matrix that represents the neighborhood structure of the map object in graph format.
Map in boundary format that should be converted.
Felix Heinzl, Thomas Kneib
BayesX Reference Manual. Available from https://www.uni-goettingen.de/de/bayesx/550513.html
read.bnd,read.gra,write.bnd,write.gra
read.bnd
read.gra
write.bnd
write.gra
tanzania.bnd <- read.bnd(system.file("examples/tanzania.bnd", package="BayesX")) tanzania.gra <- bnd2gra(tanzania.bnd)
Run the code above in your browser using DataLab