magclass (version 4.107.0)

convert.report: Converts a report from one model to another

Description

This function converts the content of a reporting file from one model to another

Usage

convert.report(rep, inmodel = NULL, outmodel = "MAgPIE",
  full = FALSE, as.list = TRUE)

Arguments

rep

Report. Either the file name of a mif file or a report already read in in R.

inmodel

Model the input comes from. If NULL the script tries to detect the inmodel automatically.

outmodel

Model format the data should be converted to. Currently, "MAgPIE" and "REMIND" are available

full

Boolean deciding whether only the converted output should be returned (FALSE) or the new output together with the input (TRUE)

as.list

if TRUE a list is returned (default), if FALSE it is tried to merge all information in one MAgPIE object (still under development and works currently only if the entries for the different models and scenarios have exactly the same regions and years).

Details

The function converts data based on a region mapping and transformation rules which are stored in the variable magclassdata which comes with this library.

See Also

read.report,write.report,magclassdata

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
convert.report("report.mif")
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace