Learn R Programming

deal (version 1.1-1)

readnet: Read .net file

Description

Read a Bayesian network specification in the .net language (see eg. Hugin)

Usage

readnet(fn)

Arguments

fn
Filename to be read

Value

  • A network with the nodes specified as in the .net file. The network has not been learned and does not contain 'prob' attributes.

Details

Reads only the 'node' and 'potential' specifycation. Does not store the 'data' entries as well as other information.

References

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

See Also

network, savenet

Examples

Run this code
data(rats)
nw <- network(rats)
savenet(nw)
nw2 <- readnet("default.net")

Run the code above in your browser using DataLab