export_dexi_value {DEXiR}R Documentation

export_dexi_value

Description

Convert a DEXi value to a character string that is understood by DEXi/DEXiWin software while importing data about alternatives.

Usage

export_dexi_value(value)

Arguments

value

A DEXi value: NA, NULL, a single number, integer vector (a set) or a distribution.

Value

A string representation of value.

Examples

export_dexi_value(NULL)                            # "<undefined>"
export_dexi_value(NA)                              # "<undefined>"
export_dexi_value(1)                               # "1"
export_dexi_value(3.2)                             # "3.2"
export_dexi_value(c(1, 3, 5))                      # "1;3;5"
export_dexi_value(distribution(0.1, 0.9))          # "1/0.1;2/0.9"
export_dexi_value(distribution(0, 0.1, 0, 0.9, 0)) # "2/0.1;4/0.9"


[Package DEXiR version 1.0.2 Index]