powered by
Add or delete a node in a gRaven domain.
add.node(domain, name, category = c("chance", "decision", "utility", "function"), kind = c("discrete", "continuous", "other"), subtype, states) delete.node(domain, name)
a NULL value is invisibly returned.
name of a gRaven domain
a character string containing the name of the node to be added or deleted
a character string specifying the category of the node
a character string specifying the kind of the node
a character string, 'labeled', 'numbered' or 'boolean'
a character, numeric or logical vector listing the states for this node
Only discrete chance nodes are currently handled in gRaven.
gRaven
Peter J. Green, P.J.Green@bristol.ac.uk
Emulates functions of the same name in the RHugin package by calls to gRain functions, delete.node deletes the specified node and all incident edges; nullifies all corresponding CPTs.
RHugin
gRain
delete.node
demo(chest.setup,package="gRaven") chest add.node(chest,'dummy',states=1:3) delete.node(chest,'either') chest
Run the code above in your browser using DataLab