value_text {DEXiR}R Documentation

value_text

Description

Converts a DEXi value to a human-readable character string that can be printed. Used, for instance, by DexiModel$as_character().

Usage

value_text(value, scale, round = NULL)

Arguments

value

Any DEXi value type (see DEXiR-package).

scale

A DexiScale or derived object.

round

An integer number. Indicates the number of decimals for rounding numeric values prior to printing. If NULL, no rounding takes place.

Value

character.

Examples

scl <- DexiDiscreteScale(values = c("low", "med", "high"))
value_text(NA, scl)
value_text(1, scl)
value_text(c(1, 3), scl)
value_text(distribution(0.1, 0.2, 0.3), scl)


[Package DEXiR version 1.0.2 Index]