powered by
Extracts the neighbors of a number of regions from a map in graph format.
get.neighbor(map, regions)
Map object in graph format.
Vector of names of regions for which the neighbors should be axtracted.
A list of vectors containing the neighbors of the elements in regions.
regions
add.neighbor,delete.neighbor
add.neighbor
delete.neighbor
# NOT RUN { germany <- read.gra(system.file("examples/germany.gra", package="BayesX")) get.neighbor(germany, "1001") get.neighbor(germany, c("1001", "7339")) # }
Run the code above in your browser using DataLab