BayesX (version 0.2-3)

get.neighbor: Obtain Neighbors of Given Regions

Description

Extracts the neighbors of a number of regions from a map in graph format.

Usage

get.neighbor(map, regions)

Arguments

Value

A list of vectors containing the neighbors of the elements in regions.

See Also

add.neighbor,delete.neighbor

Examples

Run this code
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