Learn R Programming

DEXiR (version 1.0.2)

rule_value: rule_value

Description

Values of decision rules are in .dxi files encoded using character strings, where each individual character encodes some function value. The encoding is zero-based, so that "0" represents the lowest ordinal number on the corresponding discrete scale. rule_value(char) converts a single character to the corresponding ordinal value.

Usage

rule_value(ch)

Value

Corresponding integer value.

Arguments

ch

A single character, such as "3" or "Z".

Examples

Run this code
rule_value("1")
rule_value("Z")

Run the code above in your browser using DataLab