as_bn: Convert to a 'bnlearn' object

View source: R/as_bn.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 May 29, 2024, 12:33 p.m.