export_alternatives {DEXiR} | R Documentation |
export_alternatives
Description
Convert alternatives
' data to a data frame formatted so that it can be
imported by DEXi/DEXiWin software.
Usage
export_alternatives(model, alternatives = NULL)
Arguments
model |
A DexiModel object. Required. |
alternatives |
A |
Details
In order to import the output of export_alternative()
in DEXi/DEXiWin software,
proper Import/Export
settings must be ensured in these programs:
- DEXi
Option values: "base 1", Attributes: "all", Orientation: "normal", Indent: "indent".
- DEXiWin
Option values: "Base 1", Attributes: "All", Orientation: "Attributes \ Alternatives", Indent: "Indent tree levels", CSV Format: "Invariant" when
format = "csv"
and "Local" whenformat = "csv2"
.
If alternatives
contain value distributions,
they can be imported only by DEXiWin and not by DEXi.
Value
A data frame consisting of character strings that can be further written out by write_alternatives()
.
See Also
Examples
# Load "Car.dxi"
CarDxi <- system.file("extdata", "Car.dxi", package = "DEXiR")
Car <- read_dexi(CarDxi)
export_alternatives(Car) # export both alternatives from Car
export_alternatives(Car, 1) # export only the first alternative