Last chance! 50% off unlimited learning
Sale ends in
Converts a map in boundary format to a map in graph format.
bnd2gra(map)
Map in boundary format that should be converted.
Returns an adjacency matrix that represents the neighborhood structure of the map object in graph format.
BayesX Reference Manual. Available from http://www.bayesx.org
# NOT RUN {
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