Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bnd2gra

Convert Boundary Format to Graph Format


Description

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

Usage

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

Examples

data("FantasyBnd")
plotmap(FantasyBnd, names = TRUE)
adjmat <- bnd2gra(FantasyBnd)
adjmat

R2BayesX

Estimate Structured Additive Regression Models with 'BayesX'

v1.1-1
GPL-2 | GPL-3
Authors
Nikolaus Umlauf [aut, cre], Thomas Kneib [aut], Stefan Lang [aut], Achim Zeileis [aut] (0000-0003-0918-3766)
Initial release
2017-12-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.