values_to_str {DEXiR} | R Documentation |
Convert numbers to a DEXi string. Implements the reverse operation of rule_values()
.
values_to_str(vals, add = 0)
vals |
Numeric vector, containing ordinal values. |
add |
An integer constant to be added to |
A string representing DEXi's representation of ordinal values. Fails when
vals + add
contains negative numbers.
values_to_str(c(0, 1, 1, 2, 2, 10, 12))
values_to_str(c(1, 2, 2, 3, 3, 11, 13), -1)