PnetTitle | R Documentation |
The title is a longer name for a network which is not subject to the
Netica IDname
restrictions. The comment is a free form
text associated with a network.
PnetTitle(net)
PnetTitle(net) <- value
PnetDescription(net)
PnetDescription(net) <- value
net |
A |
value |
A character object giving the new title or comment. |
The title is meant to be a human readable alternative to the name,
which is not limited to the IDname
restrictions. The
title also affects how the network is displayed in the Netica GUI.
The comment is any text the user chooses to attach to the network. If
value
has length greater than 1, the vector is collapsed into a
long string with newlines separating the components.
A character vector of length 1 providing the title or comment.
Russell Almond
http://norsys.com/onLineAPIManual/index.html: GetNetTitle_bn(), SetNetTitle_bn(), GetNetComments_bn(), SetNetComments_bn()
NeticaBN
, NetworkName()
sess <- NeticaSession()
startSession(sess)
firstNet <- CreateNetwork("firstNet",sess)
PnetTitle(firstNet) <- "My First Bayesian Network"
stopifnot(PnetTitle(firstNet)=="My First Bayesian Network")
now <- date()
NetworkComment(firstNet)<-c("Network created on",now)
## Print here escapes the newline, so is harder to read
cat(NetworkComment(firstNet),"\n")
stopifnot(NetworkComment(firstNet) ==
paste(c("Network created on",now),collapse="\n"))
DeleteNetwork(firstNet)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.