rule_values {DEXiR} | R Documentation |
rule_values
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
the character "0"
represents the lowest ordinal number on the corresponding discrete scale.
Encoding of characters is according to ASCII, starting with "0"
.
rule_values(str)
converts the character string to a numeric vector of corresponding
ordinal values.
Usage
rule_values(str, add = 0)
Arguments
str |
|
add |
An integer constant to be added to the resulting vector. The default is |
Value
A numeric vector of the same length as str
.
Examples
rule_values("01122:")
rule_values("01122:", add = 1)
[Package DEXiR version 1.0.2 Index]