| elementin {deal} | R Documentation |
Sequentially check if the network is in the list.
elementin(nw,nwl)
nw |
an object of class network. |
nwl |
an object of class networkfamily. |
Sequentially, the elements in nwl are compared to
nw using nwequal. If this returns TRUE, then
search is terminated and TRUE is returned. Otherwise, FALSE is
returned.
a logical. TRUE if nw is in nwl, else FALSE.
Susanne Gammelgaard Bøttcher alma@math.auc.dk,
Claus Dethlefsen dethlef@math.auc.dk.
Further information about deal can be found at:
http://www.math.auc.dk/novo/deal.
data(rats) rats.nw <- network(rats) rats.prior <- jointprior(rats.nw,12) rats.nw <- learn(rats.nw,rats,rats.prior)$nw allrats <- networkfamily(rats,rats.nw,rats.prior) elementin(rats.nw,allrats$nw)