values_to_str {DEXiR}R Documentation

values_to_str

Description

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

Usage

values_to_str(vals, add = 0)

Arguments

vals

Numeric vector, containing ordinal values.

add

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

Value

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

Examples

values_to_str(c(0, 1, 1, 2, 2, 10, 12))
values_to_str(c(1, 2, 2, 3, 3, 11, 13), -1)


[Package DEXiR version 1.0.2 Index]