addMIBatchCSV: Parse the GCAM ModelInterface output (DEPRECATED)

View source: R/importgcam.R

addMIBatchCSVR Documentation

Parse the GCAM ModelInterface output (DEPRECATED)

Description

Parse the raw output of a GCAM batch query and add them into a project.

Usage

addMIBatchCSV(
  fn,
  proj,
  clobber = FALSE,
  transformations = NULL,
  saveProj = TRUE,
  saveProjEach = FALSE,
  warn.empty = TRUE
)

Arguments

fn

Name of the file containing the output from the GCAM Model Interface.

proj

Project to add extracted results to. Can be either a project data structure or the name of a project data file. The file will be created if it doesn't already exist.

clobber

If TRUE, overwrite any existing scenario of the same name; otherwise, fail if scenario/query already exists in the data set.

transformations

Transformation functions to apply to the queries (see details).

saveProj

A flag to save the project to disk after data has been added. A user may want to avoid it if they are for instance calling this method several times and would prefer to save at the end. Users can always save at anytime by calling saveProject.

saveProjEach

A flag to save the project to disk after each query has completed. This would be useful if a user suspects a failure in the middle of running queries and would like to not loose progress made.

warn.empty

Flag: issue warning when a query returns an empty table

Details

This function could be usefult for users who have exsisting CSV batch query output they would like to import without having to re-run the queries.

Value

The project dataset with the new scenario added.


JGCRI/rgcam documentation built on July 2, 2022, 10:20 a.m.