list.domains {gRaven} | R Documentation |
List gRaven domain Objects
Description
List gRaven domain Objects
Usage
list.domains(print=TRUE)
Arguments
print |
logical, should list of domains be output to console |
Details
gRaven domains are R environment objects, with named slots typically including nodes, parents, cptables and net, where the net component is a gRain
grain
object. The domains that this function finds and lists are all the objects in .GlobalEnv of class "gRaven", and all those objects in this class that are components of a component named 'domains' of a list object in .GlobalEnv.
Value
The function invisibly returns a character vector of the domain names found.
Author(s)
Peter J. Green, P.J.Green@bristol.ac.uk
Examples
demo(chest,package="gRaven")
chest
chest2<-clone.domain(chest)
chest2
set.finding(chest,"asia","yes")
set.finding(chest,"dysp","no")
propagate(chest)
get.belief(chest,"asia")
get.belief(chest,"tub")
propagate(chest2)
get.belief(chest2,"asia")
get.belief(chest2,"tub")
list.domains()
[Package gRaven version 1.1.8 Index]