Learn R Programming

deal (version 1.1-15)

readnet: Reads .net file

Description

Reads a Bayesian network specification in the .net language (see e.g. Hugin).

Usage

readnet(fn)

Arguments

fn
File name 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 structure of a network, i.e. the DAG.

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