get.neighbor | R Documentation |
Extracts the neighbors of a number of regions from a map in graph format.
get.neighbor(map, regions)
map |
Map object in graph format. |
regions |
Vector of names of regions for which the neighbors should be axtracted. |
A list of vectors containing the neighbors of the elements in regions
.
Felix Heinzl, Thomas Kneib
add.neighbor
,delete.neighbor
germany <- read.gra(system.file("examples/germany.gra", package="BayesX"))
get.neighbor(germany, "1001")
get.neighbor(germany, c("1001", "7339"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.