powered by
Convert numbers to a DEXi string. Implements the reverse operation of rule_values().
rule_values()
values_to_str(vals, add = 0)
A string representing DEXi's representation of ordinal values. Fails when vals + add contains negative numbers.
vals + add
Numeric vector, containing ordinal values.
An integer constant to be added to vals prior to conversion.
vals
values_to_str(c(0, 1, 1, 2, 2, 10, 12)) values_to_str(c(1, 2, 2, 3, 3, 11, 13), -1)
Run the code above in your browser using DataLab