bnd2gra: Convert Boundary Format to Graph Format

Description Usage Arguments Value Author(s) References See Also Examples

Description

Converts a map in boundary format to a map in graph format.

Usage

1
bnd2gra(map, npoints = 2)

Arguments

map

map in boundary format that should be converted.

npoints

integer. How many points must be shared by two polygons to be a neighbor?

Value

Returns an adjacency matrix that represents the neighborhood structure of the map object in graph format.

Author(s)

Felix Heinzl, Thomas Kneib.

References

BayesX Reference Manual. Available at http://www.BayesX.org.

See Also

read.bnd, read.gra, write.bnd, write.gra.

Examples

1
2
3
4
data("FantasyBnd")
plotmap(FantasyBnd, names = TRUE)
adjmat <- bnd2gra(FantasyBnd)
adjmat

datacamp/R2BayesX documentation built on May 14, 2019, 7:10 p.m.