as.bn.graphNEL: Convert a graphNEL object to a 'bn' object.

Description Usage Arguments Details Value Examples

View source: R/convert.R

Description

graphNEL objects are from bioconductor package 'graph'

Usage

1
2
  ## S3 method for class 'graphNEL'
 as.bn(x, ...)

Arguments

x

An object of class 'graphNEL'

...

unused

Details

Note that graphNEL's edge list are *children* lists.

Value

An object of class 'bn'.

Examples

1
2
3
4
5
6
7
if (require(graph)){
set.seed(123)
c1 <- c(1, 1, 2, 4)
names(c1) <- as.character(1:4)
g1 <- randomNodeGraph(c1)
as.parental(g1)
}

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.