Learn R Programming

DEXiR (version 1.0.2)

export_dexi_value: 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)

Value

A string representation of value.

Arguments

value

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

Examples

Run this code
export_dexi_value(NULL)                            # ""
export_dexi_value(NA)                              # ""
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"

Run the code above in your browser using DataLab