rule_values {DEXiR} | R Documentation |
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.
rule_values(str, add = 0)
str |
|
add |
An integer constant to be added to the resulting vector. The default is |
A numeric vector of the same length as str
.
rule_values("01122:")
rule_values("01122:", add = 1)