get.parents | R Documentation |
Get the parents of a node in a gRaven domain
get.parents(domain, n, type = "parents")
domain |
name of gRaven domain |
n |
name of node |
type |
only "parents" is currently accepted |
A named list of character vectors of names of parents.
Peter J. Green, P.J.Green@bristol.ac.uk
demo("chest",package="gRaven",echo=FALSE)
get.nodes(chest)
chest$states
sapply(get.nodes(chest),function(x) get.parents(chest,x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.