PnodeName {Peanut} | R Documentation |
Gets or sets the name of the node. Rules for names are implementation dependent, but they should generally conform to variable naming conventions (begin with a letter and only contain alphanumeric characters, no embeded spaces.)
PnodeName(node) PnodeName(node)<- value
node |
A |
value |
An character vector of length 1 giving the new name. |
The PnodeTitle()
function provides another way to name
a node which is not subject to naming restrictions.
The name of the node as a character vector of length 1.
The setter method returns the node
argument.
Russell Almond
Pnode
, PnetFindNode()
,
PnodeTitle()
,
## Not run: library(PNetica) # Requires PNetica sess <- NeticaSession() startSession(sess) net <- CreateNetwork("funNet", session=sess) pnode <- NewDiscreteNode(net,"play") stopifnot(PnodeName(pnode)=="play") stopifnot(PnetFindNode(net,"play")==pnode) NodeName(pnode)<-"work" stopifnot(PnetFindNode(net,"work")==pnode) DeleteNetwork(net) stopSession(sess) ## End(Not run)