list2bn: transforms a consistent list into a new bn object

Description Usage Arguments Details Value Examples

Description

(bn) Just analyzing the components of the list (consistent names have to be used) which are supposed to be character and tackle them to produce consistent slots of a des object and alk objects. The main use of this function is to generate bn read from text files with the function file2list.

Usage

1
list2bn(li, bnd=1, nod=bf(li)[-1])

Arguments

li

The list to be transformed into a bn object. The bnd-th component must be the description of the bn; the nod components are supposed to be the nodes when the remaining arguments are left to default values.

bnd

the number of the li component to be interpreted as the description of the bn.

nod

the numbers of the li to be considered as defining a node.

Details

Be aware that the node must be given in a compatible order with the sequential construction of the bn

Value

The generated 'bn' object

Examples

1
2
3
 rebastaba3k("RESET"); # (only for R checking)
 print(list2bn(bn2list(rebastaba.bn4)));
 bn2list(rebastaba.bn0);

rebastaba documentation built on May 2, 2019, 5:24 p.m.

Related to list2bn in rebastaba...