powered by
Reads the geographical information provided in a file in graph format (see Ch. 5 of the BayesX Reference Manual) and stores it in a map object.
read.gra(file, sorted=FALSE)
Returns an adjacency matrix that represents the neighborhood structure defined in the graph file. Additional attributes are
Dimension of the (square) adjacency matrix.
List of region names corresponding to rows and columns of the adjacency matrix.
Indicates whether the map is stored in boundary format (bnd) or graph format (gra). Maps returned by read.gra are of class gra
bnd
gra
read.gra
Name of the graph file to be read.
Should the regions be ordered by the numbers speciying the region names (sorted=TRUE)?
sorted=TRUE
Thomas Kneib, Felix Heinzl
BayesX Reference Manual. Available from https://www.uni-goettingen.de/de/bayesx/550513.html
write.gra,read.bnd,write.bnd,get.neighbor,add.neighbor,delete.neighbor
write.gra
read.bnd
write.bnd
get.neighbor
add.neighbor
delete.neighbor
germany <- read.gra(system.file("examples/germany.gra", package="BayesX")) attributes(germany)
Run the code above in your browser using DataLab