Learn R Programming

DEXiR (version 1.0.2)

values_to_str: values_to_str

Description

Convert numbers to a DEXi string. Implements the reverse operation of rule_values().

Usage

values_to_str(vals, add = 0)

Value

A string representing DEXi's representation of ordinal values. Fails when vals + add contains negative numbers.

Arguments

vals

Numeric vector, containing ordinal values.

add

An integer constant to be added to vals prior to conversion.

Examples

Run this code
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