as_bn: Convert to a 'bnlearn' object

View source: R/8-conversion-functions.R

as_bnR Documentation

Convert to a bnlearn object

Description

Convert a staged tree object into an object of class bn from the bnlearn package.

Usage

as_bn(x)

## S3 method for class 'parentslist'
as_bn(x)

## S3 method for class 'sevt'
as_bn(x)

Arguments

x

an R object of class sevt or parentslist.

Value

an object of class bn from package bnlearn.


stagedtrees documentation built on April 29, 2022, 1:06 a.m.