part8bgn: classifies a set of nodes according to a subset of them

Description Usage Arguments Details Value Examples

Description

(bn) From a bn/gn structure and a subset of nodes, the set of nodes is partitioned into four exclusive classes:
(i) the targetted subset ["nod"],
(ii) their direct parents (excluding all of them) ["par"/"chi"],
(iii) their other ascendance ["asc"/"des"],
(iv) the remaining nodes ["nas"/"nde"].
Of course, some of the classes can be empty. The partition can be established for the descendance.

Usage

1
part8bgn(bgn, ion, asc=TRUE)

Arguments

bgn

The original bn or gn.

ion

The definition of targetted subset of nodes (iin or name vector). It is checked that it is a subset.

asc

Must the partition be done for ascendance (TRUE) or descendance (FALSE).

Details

No check is done about bgn validity

Value

a list of named numeric vectors with the names of the corresponding nodes. The list names are given in the description field between squared brackets.

Examples

1
2
3
4
 rebastaba3k("RESET"); # (only for R checking)
 print(part8bgn(rebastaba.bn2, "A"));
 print(part8bgn(rebastaba.bn2, "B"));
 print(part8bgn(rebastaba.bn1, "C"));

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