Learn R Programming

DEXiR (version 1.0.2)

dexi_option_value: dexi_option_value

Description

Conversion of a string to a "DEXi value" (see DEXiR-package) according to "old" DEXi syntax. In .dxi files, the old syntax is used with OPTION XML tags. The reason for replacing the old with the new syntax (see dexi_value()) was that the old syntax can not unambiguously represent value distributions.

Usage

dexi_option_value(x)

Value

A numeric vector. The conversion uses rule_values(x, add = 1). For special-type parameters, the conversion results are:


 x                              result
 ------------------------------+------
 NULL                           NULL
 a non-character object         NA
 "" or "*"                      "*"
 a string starting with "undef" NA

Arguments

x

character(1). Contains a sequence of characters, each of which represents an individual ordinal number.

See Also

DEXiR-package, dexi_value(), rule_value()

Examples

Run this code
dexi_option_value(NULL)
dexi_option_value(NA)
dexi_option_value("")
dexi_option_value("*")
dexi_option_value("undef")
dexi_option_value("1")
dexi_option_value("012")


Run the code above in your browser using DataLab