Description Usage Arguments Details Value Examples
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 /nod/ objects. The
main use of this function is to generate chains read from text files
with the function read8chain
.
1 | list2chain(li, chaind=1, nod=bf(li)[-1])
|
li |
The list to be transformed into a chain object. The chaind-th component must be the description of the bn; the nod components are supposed to be the nodes. |
chaind |
the number of the |
nod |
the numbers of the |
Be aware that the node must be given in a compatible order with the sequential construction of the chain, that is parents before children.
The generated /chain/ object
1 2 | prr3k("RESET"); # (only for R checking)
print(list2chain(chain2list(prr.chain1)));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.