View source: R/read_and_combine.R
read_and_combine | R Documentation |
This function reads model output from mif files from the provided list of folders. It also reads the GAMS modelstatus from the fulldata.gdx and appends it to the report. If more than one folder is given it combines the contents of the multiple reports into a single magpie object and returns it. If the name of an output file is provided the object is additionally stored in this file. In each of the folders there must be a report_scenname.mif, a fulldata.gdx, a spatial_header.rda, and config.Rdata.
read_and_combine(list_of_directories, outfile = NULL)
list_of_directories |
Vector of strings providing the folder names from which reports will be read. |
outfile |
Path to an output file which the output of the function can optionally be stored to. |
David Klein
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.