transforms a consistent list into a new alk

Share:

Description

(ba) 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 an alk object. The produced alk is not completed since it is defined independently of any bn.

Usage

1
list2alk(li, name="-?-")

Arguments

li

The list to be transformed into an alk object.

name

gives the name of the node when li\$name does not exist.

Details

It is worth noticing that there is some shortcuts for defining the @ldes slots of the resulting /alk/. (i) The logical way: a li$ldes component exists which can be transmitted to the function list2des. (ii.a) if not the possible slots (as @defi, @orig,...) are available at the first level of li. (ii.b) the compulsory slot @name can be also present as li$name or given by the argument name.
The complete list of standard already programmed distributions is given with help8ltype function.
The main use of this function is to tackle alk read from text files with the function file2list. It is mainly used in read8bn function.

Value

The generated 'alk'

Examples

1
2
3
4
 rebastaba3k("RESET"); # needed only for R checking, to be forgotten
 list2alk(alk2list(rebastaba.alk0));
 list2alk(alk2list(rebastaba.alk1));
 list2alk(alk2list(rebastaba.alk2));

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.