Learn R Programming

DEXiR (version 1.0.2)

dexi_table: dexi_table

Description

Create a representation of DEXi's decision table in R.

Usage

dexi_table(dim, low, high = NULL)

Value

length(dim)-dimensional matrix of rule values, which are normally single integer values, but might also be sets of values. Each set is represented by a numeric vector.

Arguments

dim

An integer vector, representing dimensions of the underlying decision space.

low

character(1). A string normally read from a .dxi file, representing the lower bounds of the corresponding decision rule values (assuming the order according to dexi_index()). Notice that the string contains zero-based characters, which are converted to one-based integer values used in R.

high

character(1) or NULL. A string representing the upper bounds of corresponding decision rule values. If high = NULL, high is assumed to be equal to low.

Examples

Run this code
# Converting DEXi's value strings to R's numeric vectors.
dexi_table(c(2, 3), "011012")
dexi_table(c(2, 3), "011012", "012112")

Run the code above in your browser using DataLab