and4gn: adds a series of nodes to a gn object

Description Usage Arguments Details Value Examples

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

Description

This function adds a series of nodes to a /gn/ without any links giving them the names into argument 'names'. They are unidimensional with empty variable names.

Usage

1
and4gn(gn, names=1, pos=NULL)

Arguments

gn

The object gn to be completed

names

(=1) when numeric of length 1, it indicates the number of nodes to add (and the name will be automatically determined by form3names function. When character it is the vector of the new names and its length gives the number of node to add.

pos

(=NULL) gives the positions to add. When null, they will be automatically provided. When a matrix, it must comprise as many rows as new nodes and 2 (x,y) or 3 (x,y,z) columns.

Details

With respect to the internal order, the new nodes are introduced at the end.

Value

The completed object gn

Examples

1
2
 g4n3k("RESET"); # needed only for R checking, to be forgotten
 and4gn(g4n.gn7, c("U", "V", "W")); 

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

Related to and4gn in g4n...