nanv: returns the names of nodes/variables of x2nom(nom)

Description Usage Arguments Details Value Examples

View source: R/f1.rbsb2.code.r

Description

According to 'what', returns the names of nodes/variables for nom or nom@nom.

Usage

1
nanv(x, what=-1)

Arguments

x

the object to consider

what

-2: returns all names of the variables (without the node name) -1: returns the names of the nodes 0: returns all names of the variables (including the node name) i: returns the names of the variables of the i-th node. (For convenience 'n' is translated as -1 and 'v' is translated as 0).

Details

As it is a very basic function, no check is made about the arguments.

Value

The names of nodes or variables, accordingly to what.

Examples

1
2
3
4
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 nanv(rbsb.nom2) # node names
 nanv(rbsb.nom2, 0) # node[variable] names
 nanv(rbsb.nom2, -2) # variable names

rbsb documentation built on May 2, 2019, 4:41 p.m.

Related to nanv in rbsb...