add_logit_tables_xml: Add a table which has definitions with logit.type to be...

View source: R/xml.R

add_logit_tables_xmlR Documentation

Add a table which has definitions with logit.type to be converted to XML

Description

Such tables need to get partitioned into a series of tables due to limitations in the way that the Model Interfaces processes information. In particular all XML tag names have to be specified in the header and can not be set dynamically as is the intention with the logit.type.

Usage

add_logit_tables_xml(dot, data, header, base_logit_header = header)

Arguments

dot

The current state of the pipeline started from create_xml

data

The tibble of data to add to the conversion

header

The header tag to can be looked up in the header file to convert data

base_logit_header

The base header tag to use for the generated logit type tables such that paste(base_logit_header, logit.type, sep = "_") corresponds to the appropriate model interface header. Note by default this value is the same as header as often this is the case but certainly not always.

Value

A "data structure" to hold the various parts needed to run the model interface CSV to XML conversion.

Note

For documentation of the options for logit choice functions in GCAM, see http://jgcri.github.io/gcam-doc/choice.html.

Author(s)

Pralit Patel


bpbond/gcamdata documentation built on March 22, 2023, 4:52 a.m.