as.bn.character: Convert a character vector to a 'bn'.

Description Usage Arguments Value Examples

View source: R/convert.R

Description

Format required is one of two. Either standard or pretty. See examples.

Usage

1
2
  ## S3 method for class 'character'
 as.bn(x, checkAcyclic = T, ...)

Arguments

x

A character object

checkAcyclic

Should the bn be checked for cycles? A logical.

...

Further arguments (unused)

Value

A object of class bn.

Examples

1
2
x <- "[][1][1,2][3]"
as.bn(x, pretty = TRUE)

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