read.gra(file, sorted = FALSE, sep = " ")sorted = TRUE)?-1 if regions are neighbors else 0.0. Example taken from the package
example file Germany.gra:
write.gra, read.bnd, write.bnd,
get.neighbor, add.neighbor, delete.neighbor.file <- file.path(find.package("R2BayesX"), "examples", "Germany.gra")
germany <- read.gra(file)Run the code above in your browser using DataLab