add_nodes.bnet: add nodes to a bnet object

Description Usage Arguments Value Examples

Description

add nodes to a bnet object

Usage

1
add_nodes.bnet(object, nodes, data = NULL, ...)

Arguments

object

a bnet obejct

nodes

a vector of names for the nodes to be added

data

optionally a data.frame for fitting the new nodes

...

additional parameters to be passed to bmop fitting functions

Value

a bnet object

Examples

1
2
3
4
5
6
7
8
mat <- rbind(c(0, 0, 1, 1),
c(0, 0, 1, 1),
c(0, 0, 0, 1),
c(0, 0, 0, 0))
bnet<-as.bnet(mat)
plot(bnet)
bnet<-add_nodes.bnet(bnet,"5")
plot(bnet)

gherardovarando/Rbnet documentation built on May 17, 2019, 4:18 a.m.