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

View source: R/xml.R

add_xml_dataR Documentation

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

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

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


JGCRI/gcamdata documentation built on March 21, 2023, 2:19 a.m.