configs: Construct configurations of discrete variables

Description Usage Arguments Value Author(s) Examples

View source: R/frontend-data.R

Description

Create configurations of discrete variables, which can be used in modelling conditional probability tables.

Usage

1

Arguments

data

a data frame containing factor columns.

all

a boolean value. If TRUE all configuration are included as levels in the return value; otherwise only configurations which are actually observed are considered.

Value

A factor with one element for each row of data, and levels as specified by all.

Author(s)

Marco Scutari

Examples

1
2
3

bnlearn documentation built on Sept. 7, 2021, 1:07 a.m.