parents8bn: returns the direct parents of a bn

Description Usage Arguments Value Examples

Description

(bn) Returns the parents of all nodes or all variables of 'bn'.

Usage

1
parents8bn(bn, of="n")

Arguments

bn

the bn object.

of

'n' of the nodes; 'v' of the variables.

Value

A list of character vectors containing the names of the parents, each component of the list is associated to an item (node or variable). When there is no parent, character(0) is returned.

Examples

1
2
3
 rebastaba3k("RESET"); # (only for R checking)
 parents8bn(rebastaba.bn2, "n");
 parents8bn(rebastaba.bn2, "v");

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