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.


gherardovarando/stagedtrees documentation built on July 5, 2025, 12:35 a.m.