get.parents {gRaven}R Documentation

Get the parents of a node in a gRaven domain

Description

Get the parents of a node in a gRaven domain

Usage

get.parents(domain, n, type = "parents")

Arguments

domain

name of gRaven domain

n

name of node

type

only "parents" is currently accepted

Value

A named list of character vectors of names of parents.

Author(s)

Peter J. Green, P.J.Green@bristol.ac.uk

Examples

demo("chest",package="gRaven",echo=FALSE)
get.nodes(chest)
chest$states
sapply(get.nodes(chest),function(x) get.parents(chest,x))

[Package gRaven version 1.1.8 Index]