configs: Construct configurations of discrete variables

Description

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

Usage

configs(data, all = TRUE)

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.

Details

discretize takes a data frame of continuous variables as its first
argument and returns a secdond data frame of discrete variables, transformed
using of three methods: interval, quantile or hartemink. dedup screens the data for pairs of highly correlated variables, and
discards one in each pair.