bn2nd: extracts and returns some traits of a node defined into a bn

Description Usage Arguments Details Value Examples

Description

(bn) The extraction is made for only one node but several different extractions can be asked when 'what' is a vector.
The hope is that function be used very extensively to ease further modifications within the /bn/ object structure.

Usage

1
bn2nd(bn, nod, what, check=TRUE)

Arguments

bn

The /bn/ from which the extraction will be made.

nod

The node (name or nk specification) to be extracted.

what

A character defining by each of its composents what must be extracted. The different possibilities are:
'par': the direct parents of the node (in name specification)
'asc': all ascendants of the node (in name specification)
'chi': the direct parents of the node (in name specification)
'des': all ascendants of the node (in name specification)
'nat': variable natures o

check

Must checking be made?

Details

The characteristics which are at the bn@nom level (like the variable names, indices of the variable node) are not included here because they might exist for this object.

Value

A list with as many components as asked by 'what's with the same names. Each component being the computed response built up on the /bn/ exploration.

Examples

1
2
3
4
5
6
 rebastaba3k("RESET"); # (only for R checking)
 bn2nd(rebastaba.bn2, "B", "par");
 bn2nd(rebastaba.bn2, "B", "asc");
 bn2nd(rebastaba.bn2, "B", "chi");
 bn2nd(rebastaba.bn2, "B", "des");
 bn2nd(rebastaba.bn2, "B", "nat");

rebastaba documentation built on May 2, 2019, 5:24 p.m.

Related to bn2nd in rebastaba...