nodes: Returns a list with the names of the nodes of a BN or a DBN

View source: R/bnlearn_compat.R

nodesR Documentation

Returns a list with the names of the nodes of a BN or a DBN

Description

Generic method for obtaining the names of the nodes in a BN or a DBN. Calls bnlearn's nodes underneath. I have to redefine the generic and mask the original for it to work on both bn and dbn objects without the user having to import bnlearn.

Usage

nodes(object, ...)

Arguments

object

a "bn", "dbn", "bn.fit" or "dbn.fit" object

...

additional parameters

Value

the names of the nodes


dbnR documentation built on Oct. 5, 2022, 1:07 a.m.

Related to nodes in dbnR...