value_text {DEXiR} | R Documentation |
Converts a DEXi value
to a human-readable character string that can be printed.
Used, for instance, by DexiModel$as_character()
.
value_text(value, scale, round = NULL)
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 |
character.
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)