Description Usage Arguments Value Note Author(s) References
Read networks saved from other programs into bn.fit objects, and
dump bn and bn.fit objects into files for other programs
to read.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Old (non-XML) Bayesian Interchange format.
read.bif(file, debug = FALSE)
write.bif(file, fitted)
# Microsoft Interchange format.
read.dsc(file, debug = FALSE)
write.dsc(file, fitted)
# HUGIN flat network format.
read.net(file, debug = FALSE)
write.net(file, fitted)
# Graphviz DOT format.
write.dot(file, graph)
|
file |
a connection object or a character string. |
fitted |
an object of class |
graph |
an object of class |
debug |
a boolean value. If |
read.bif, read.dsc and read.net return an
object of class bn.fit.
write.bif, write.dsc, write.net and
write.dot return NULL invisibly.
All the networks present in the Bayesian Network Repository have
associated BIF, DSC and NET files that can be imported with
read.bif, read.dsc and read.net.
HUGIN can import and export NET files; Netica can read (but not write) DSC files; and Genie can read and write both DSC and NET files.
DOT files can be read by Graphviz, Gephi and a variety of other programs.
Please note that these functions work on a "best effort" basis, as the parsing of these formats have been implementing by reverse engineering the file format from publicly available examples.
Marco Scutari
Bayesian Network Repository, http://www.bnlearn.com/bnrepository.
Genie, http://genie.sis.pitt.edu.
HUGIN Expert, http://www.hugin.com.
Netica, http://www.norsys.com/netica.html.
Graphviz, http://www.graphviz.org.
Gephi, http://gephi.org.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.