nv3nom: detects the existence of names into x2nom(nom)

Description Usage Arguments Details Value Examples

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

Description

Detects the existence of 'na' as a valid node names or a valid variable names included into nom or [email protected].

Usage

1
nv3nom(na, nom)

Arguments

na

name vector to be looked for

nom

nom object to make the correspondence.

Details

In case of identical variable and node names, the node will be retained: nv3nom("a",new("nom",x=list(a="a"))) returns 1, not -1.

Value

a named (with na) numeric vector of length(na). Its values are: -i when a variable name of the ith node 0 when no correspondance; 1 when a node name with variable(s); 2 when a node[variable] name; 3 when a node name without variable.

Examples

1
2
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 nv3nom(c("C[1]", "C[10]", "2", "C", "B", "a"), rbsb.nom3);

rbsb documentation built on May 31, 2017, 1:45 a.m.