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

read.bnd

Read Geographical Information in Boundary Format


Description

Reads the geographical information provided in a file in boundary format (see Ch. 5 of the BayesX Reference Manual) and stores it in a map object.

Usage

read.bnd(file, sorted=FALSE)

Arguments

file

Name of the boundary file to be read.

sorted

Should the regions be ordered by the numbers speciying the region names (sorted=TRUE)?

Value

Returns a list of polygons that form the map. Additional attributes are

surrounding

Parallel list where for each polygon, the name of a possible surrounding region is saved.

height2width

Ratio between height and width of the map. Allows customised drawing and storage in files by specifying the appropriate height and width.

class

Indicates whether the map is stored in boundary format (bnd) or graph format (gra). Maps returned by read.bnd are of class bnd

Author(s)

Daniel Sabanes Bove, Felix Heinzl, Thomas Kneib, Andreas Brezger

References

BayesX Reference Manual. Available from http://www.bayesx.org/

See Also

Examples

germany <- read.bnd(system.file("examples/germany.bnd", package="BayesX"))
drawmap(map=germany)
attributes(germany)

germany <- read.bnd(system.file("examples/germany2001.bnd", package="BayesX"))
drawmap(map=germany)
attributes(germany)

BayesX

R Utilities Accompanying the Software Package BayesX

v0.3-1
GPL-2 | GPL-3
Authors
Nikolaus Umlauf [aut, cre], Thomas Kneib [aut], Nadja Klein [aut], Felix Heinzl [ctb], Andreas Brezger [ctb], Daniel Sabanes Bove [ctb]
Initial release
2019-08-23

We don't support your browser anymore

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