df2bn: initializes a bn object from a data frame

Description Usage Arguments Value Examples

Description

(bn) just creating a bn without any link and constant distribution numbering the nodes from the variables of the data frame.
When a variable is a factor, then the distribution is taken as categoric with uniform distribution.

Usage

1
df2bn(df, description=new("des", name="created.by.df2bn"))

Arguments

df

the data frame

description

the descripion to give to the bn.

Value

a bn object

Examples

1
2
 rebastaba3k("RESET"); # (only for R checking)
 print(df2bn(data.frame(A=1:3, B=LETTERS[1:3], C=11:13)));

rebastaba documentation built on May 2, 2019, 5:24 p.m.

Related to df2bn in rebastaba...