write.gra: Saving Maps in Graph Format

Description Usage Arguments Author(s) References See Also Examples

View source: R/write.gra.R

Description

Writes the information of a map object to a file (in graph format).

Usage

1

Arguments

map

map object ot be saved (should be in graph format, see bnd2gra for the conversion of boundary format to graph format).

file

name of the file to write to

replace

should an existing file be overwritten with the new version?

Author(s)

Thomas Kneib, Felix Heinzl.

References

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

See Also

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

Examples

1
2
3
4
5
data("FantasyBnd")
tfile <- tempfile()
write.gra(bnd2gra(FantasyBnd), file = tfile)
cat(readLines(tfile), sep = "\n")
unlink(tfile)

R2BayesX documentation built on May 31, 2017, 4:27 a.m.