add_xml_data: Add a table to an XML pipeline to include for conversion to...

Description Usage Arguments Value Author(s)

View source: R/xml.R

Description

We need the tibble to convert and a header tag which can be looked up in the header file to convert the tibble. This method is meant to be included in a pipeline between calls of create_xml and run_xml_conversion. Please see the wiki for more details https://github.com/JGCRI/gcamdata/wiki/XML-Conversion

Usage

1
add_xml_data(dot, data, header, column_order_lookup = 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

column_order_lookup

A tag that can be used to look up LEVEL2_DATA_NAMES to reorder the columns of data before XML conversion to ensure they correspond with the ModelInterface header. Note by default the header is used and if given NULL no column reordering will be done.

Value

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

Author(s)

PP March 2017


rohmin9122/gcam-korea-release documentation built on Nov. 26, 2020, 8:11 a.m.