nodes-set: Relabel the names of the nodes of a BN or a DBN

nodes<-R Documentation

Relabel the names of the nodes of a BN or a DBN

Description

Generic method for renaming 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) <- value

Arguments

object

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

value

a list with the new names

Value

the modified object


dkesada/dbnR documentation built on June 19, 2024, 6:45 p.m.