Learn R Programming

BayesX (version 0.2-3)

bnd2gra: Convert Boundary Format to Graph Format

Description

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

Usage

bnd2gra(map)

Arguments

Value

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

References

BayesX Reference Manual. Available from http://www.stat.uni-muenchen.de/~bayesx/

See Also

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

Examples

Run this code
tanzania.bnd <- read.bnd(system.file("examples/tanzania.bnd", package="BayesX"))
tanzania.gra <- bnd2gra(tanzania.bnd)

Run the code above in your browser using DataLab