DeleteNodeTable {RNetica} | R Documentation |
This function completely removes the conditional probability table (CPT) associated with a node.
DeleteNodeTable(node)
node |
An active |
Returns the modified node invisibly.
Russell Almond
http://norsys.com/onLineAPIManual/index.html: DeleteNodeTables_bn()
NeticaNode
, NodeParents()
,
NodeInputNames()
, HasNodeTable()
sess <- NeticaSession() startSession(sess) a1 <- CreateNetwork("AB1", session=sess) A <- NewDiscreteNode(a1,"A",c("A1","A2")) NodeProbs(A) <- c(0,1) stopifnot( all(HasNodeTable(A))==TRUE ) DeleteNodeTable(A) stopifnot( all(HasNodeTable(A))==FALSE ) DeleteNetwork(a1) stopSession(sess)