Learn R Programming

deal (version 1.1-2)

savenet: Save Bayesian network as .net file

Description

Exports a network object in the standard format .net (used by eg. Hugin)

Usage

savenet(nw, filename = "default.net")

Arguments

nw
Network object, see network
filename
Filename (should end with .net)

Value

  • A file is created

Details

The prob attribute for each node in the network object is exported along with the network structure defined by the parents of each node.

References

Further information about Deal can be found at: http://www.math.auc.dk/novo/deal.

See Also

network

Examples

Run this code
data(rats)
nw <- network(rats) # the empty network
savenet(nw)

Run the code above in your browser using DataLab