list2gn: transforms a consistent list into a new /gn/ object

Description Usage Arguments Details Value Examples

View source: R/f0.g4n1.code.r

Description

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 /gn/ object... The main use of this function is to generate /gn/ read from text files with the function read8gn.

Usage

1
list2gn(li)

Arguments

li

The list to be transformed into a /gn/ object. Compulosory component is $name. Usual component is $arc. Possible components are $posi for the positions, $item for the node/variabl

Details

When $item does not exist, @item is computed from $posi if it exists if not from $arc.

Value

The generated /gn/ object

Examples

1
2
 g4n3k("RESET"); # for R checking need
 print(list2gn(list(name="a", item=c("A", "B"))));

g4n documentation built on May 2, 2019, 5:47 p.m.

Related to list2gn in g4n...