Title: | Project specific interfaces to REMIND / MAgPIE |
---|---|
Description: | Project specific interfaces to REMIND / MAgPIE. |
Authors: | Falk Benke [aut, cre], Oliver Richters [aut] |
Maintainer: | Falk Benke <[email protected]> |
License: | LGPL-3 |
Version: | 0.40.4 |
Built: | 2024-12-20 13:26:57 UTC |
Source: | https://github.com/pik-piam/piamInterfaces |
Project specific interfaces to REMIND / MAgPIE.
Maintainer: Falk Benke [email protected]
Authors:
Oliver Richters
Useful links:
Check whether units are identical following a specified list
areUnitsIdentical(vec1, vec2 = NULL)
areUnitsIdentical(vec1, vec2 = NULL)
vec1 |
units to be checked against vec2, elementwise |
vec2 |
units to be checked against vec1, elementwise |
boolean
Oliver Richters
Check units in IIASA submission by comparing mifdata to a project template
checkFixUnits(mifdata, template, logFile = NULL, failOnUnitMismatch = TRUE)
checkFixUnits(mifdata, template, logFile = NULL, failOnUnitMismatch = TRUE)
mifdata |
quitte object or filename of mif file |
template |
object provided by loadIIASAtemplate() or getMapping() interprets it as a mapping if 'piam_variable' and 'piam_unit' columns exist |
logFile |
filename of file for logging |
failOnUnitMismatch |
boolean whether to fail in case of unit mismatches recommended for submission, not used for generating mappings |
quitte object with adapted mif data
Oliver Richters
Check IIASA submission by comparing mif data to a template file (xlsx or yaml) provided by IIASA
checkIIASASubmission( mifdata, iiasatemplate, logFile = NULL, failOnUnitMismatch = TRUE )
checkIIASASubmission( mifdata, iiasatemplate, logFile = NULL, failOnUnitMismatch = TRUE )
mifdata |
quitte object or filename of mif file |
iiasatemplate |
filename of xlsx or yaml file provided by IIASA |
logFile |
filename of file for logging. Set to NULL for stdout, set to FALSE for none. |
failOnUnitMismatch |
boolean whether to fail in case of unit mismatches recommended for submission |
quitte object with adapted mif data
Oliver Richters
## Not run: # Simple use. Generates submission file in output folder: checkIIASASubmission( mifdata = "file.mif", iiasatemplate = "template.xlsx", logFile = "logFile.txt" ) ## End(Not run)
## Not run: # Simple use. Generates submission file in output folder: checkIIASASubmission( mifdata = "file.mif", iiasatemplate = "template.xlsx", logFile = "logFile.txt" ) ## End(Not run)
Check whether all variables required by mapping are present in mifdata for given source
checkMissingVars(mifdata, mapping = TRUE, sources = TRUE)
checkMissingVars(mifdata, mapping = TRUE, sources = TRUE)
mifdata |
data that can be read with as.quitte |
mapping |
name of the project of requested mappings such as c('AR6', 'AR6_NGFS') or 'mapping.csv'. Use TRUE for all mappings. |
sources |
model abbreviation(s) used in 'source' column. R = REMIND, M = MAgPIE, T = EDGE-T, B = Brick, C = Climate/MAGICC, TRUE = all |
an invisible vector with missing variables
Oliver Richters
Check NGFS submission by comparing mif data to a template file (xlsx or yaml) provided by IIASA
checkNGFS(mifdata, iiasatemplate, logFile, generatePlots = TRUE)
checkNGFS(mifdata, iiasatemplate, logFile, generatePlots = TRUE)
mifdata |
quitte object or filename of mif file |
iiasatemplate |
filename of xlsx or yaml file provided by IIASA |
logFile |
filename of file for logging. Set to NULL for stdout, set to FALSE for none. |
generatePlots |
boolean whether to plot failing summations |
quitte object with adapted mif data
Oliver Richters
Checks for a run if the variables sum up as expected and logs spotted gaps
checkSummations( mifFile, outputDirectory = ".", template = NULL, summationsFile = NULL, logFile = NULL, logAppend = FALSE, generatePlots = FALSE, mainReg = "World", dataDumpFile = "checkSummations.csv", plotprefix = NULL, absDiff = 0.001, relDiff = 1, roundDiff = TRUE, csvSeparator = ";" )
checkSummations( mifFile, outputDirectory = ".", template = NULL, summationsFile = NULL, logFile = NULL, logAppend = FALSE, generatePlots = FALSE, mainReg = "World", dataDumpFile = "checkSummations.csv", plotprefix = NULL, absDiff = 0.001, relDiff = 1, roundDiff = TRUE, csvSeparator = ";" )
mifFile |
path to the mif file to apply summation checks to, or quitte object |
outputDirectory |
path to directory to place logFile and dataDumpFile. |
template |
mapping to be loaded, used to print the piam_variable corresponding to the data variables |
summationsFile |
in inst/summations folder that describes the required summation groups if set to 'extractVariableGroups', tries to extract summations from variables with + notation |
logFile |
file where human-readable summary is saved. If NULL, write to stdout. If FALSE, don't log. |
logAppend |
boolean whether to append or overwrite logFile |
generatePlots |
boolean whether pdfs to compare data are generated. Requires outputDirectory. |
mainReg |
main region for the plot generation |
dataDumpFile |
file where data.frame with the data analysis is saved. Requires outputDirectory. If NULL, result is returned. |
plotprefix |
added before filename |
absDiff |
threshold for absolute difference between parent variable and summation |
relDiff |
threshold (in percent) for relative difference between parent variable and summation |
roundDiff |
should the absolute and relative differences in human-readable summary and dataDumpFile be rounded? The returned object always contains unrounded values. |
csvSeparator |
separator for dataDumpFile, defaults to semicolon |
Falk Benke, Oliver Richters
Checks for a run if the regions for selected variables sum up as expected
checkSummationsRegional( mifFile, parentRegion = NULL, childRegions = NULL, variables = NULL, skipUnits = NULL, skipBunkers = NULL, intensiveUnits = TRUE, absDiff = 1e-04, relDiff = 0.1 )
checkSummationsRegional( mifFile, parentRegion = NULL, childRegions = NULL, variables = NULL, skipUnits = NULL, skipBunkers = NULL, intensiveUnits = TRUE, absDiff = 1e-04, relDiff = 0.1 )
mifFile |
path to the mif file to apply summation checks to, or quitte object |
parentRegion |
region to sum up to. Defaults to World or GLO |
childRegions |
regions that should sum up to |
variables |
list of variables to check. Defaults to all in mifFile |
skipUnits |
units to be skipped. Set to TRUE to get list of units pointing towards their variable being intensive. You can also use c(TRUE, "additionalunit") |
skipBunkers |
set to TRUE to skip AR6 variables that contain bunkers only at the global level |
intensiveUnits |
intensive units where the global value should not be the sum, but instead lie between the regional values. Set to TRUE to get list of units pointing towards their variable being intensive. You can also use c(TRUE, "additionalunit"). |
absDiff |
threshold for absolute difference between parent variable and summation |
relDiff |
threshold (in percent) for relative difference between parent variable and summation |
Falk Benke
## Not run: checkSummationsRegional( mifFile = "path/to/file", childRegions = c("R5ASIA", "R5LAM", "R5MAF", "R5OECD90+EU", "R5REF"), parentRegion = "World", variables = c("Final Energy|Industry", "Emissions|CO2|Energy|Demand|Industry") ) ## End(Not run)
## Not run: checkSummationsRegional( mifFile = "path/to/file", childRegions = c("R5ASIA", "R5LAM", "R5MAF", "R5OECD90+EU", "R5REF"), parentRegion = "World", variables = c("Final Energy|Industry", "Emissions|CO2|Energy|Demand|Industry") ) ## End(Not run)
This function checks whether the piam_factor in a mapping fits unit and piam_unit. It does the following:
check whether the units are identical based on areUnitsIdentical() and piam_factor is 1 or -1.
based on scaleConversion defined below, check whether manually added factors are satisfied This works based on regex matching, so for example 1000 TW = 1 PW is matched by the c("1000", "T", "P") line. If the tests fail because of a new unit, you can add them below. If the units are really identical except for spelling, better add them to areUnitsIdentical.R
checkUnitFactor(template, logFile = NULL, failOnUnitMismatch = TRUE)
checkUnitFactor(template, logFile = NULL, failOnUnitMismatch = TRUE)
template |
object provided by loadIIASAtemplate() |
logFile |
filename of file for logging |
failOnUnitMismatch |
boolean whether to fail in case of unit mismatches recommended for submission, not used for checking mapping |
quitte object with adapted mif data
Oliver Richters
Pass a vector of variable names (including the units if withunits=TRUE). Get warnings if inconsistencies are found for the reporting
checkVarNames(vars, withunits = TRUE, mappingName = NULL)
checkVarNames(vars, withunits = TRUE, mappingName = NULL)
vars |
vector with variable names (and units such as "PE (EJ)") |
withunits |
should the var vector contain units in paranthesis? |
mappingName |
enables to define variablesWithoutUnit for specific mapping |
Oliver Richters
Converts data in historical.mif to match project-specific variables and regions so that it can be used for comparison in an intermodel comparison project
convertHistoricalData(mif, project, regionMapping = NULL, mainReg = "World")
convertHistoricalData(mif, project, regionMapping = NULL, mainReg = "World")
mif |
quitte object with historical data or path to historical.mif |
project |
name of the project, determines the mapping to be loaded |
regionMapping |
(optional) csv file with mapping of REMIND regions or ISO to project regions, must contain two columns: One can be called 'REMIND' or 'CountryCode' and contains the regions in the data. The second can be called 'project_region' or 'RegionCode', to which the first is mapped. You can also specify the filename part before the .csv from inst/regionmapping |
mainReg |
if regionMapping is specified, additional main region that is kept as is |
Falk Benke
## Not run: data <- convertHistoricalData( mif = "path/to/historical.mif", project = "NAVIGATE", regionMapping = "path/to/region_mapping_NAVIGATE.csv" ) ## End(Not run)
## Not run: data <- convertHistoricalData( mif = "path/to/historical.mif", project = "NAVIGATE", regionMapping = "path/to/region_mapping_NAVIGATE.csv" ) ## End(Not run)
Extract reference year for price indices from unit
extractReferenceYear(unit, var = NULL)
extractReferenceYear(unit, var = NULL)
unit |
vector or string of units such as 'Index (2020 = 1)' |
var |
optional string of variable name to facilitate debugging |
vector or string of reference years such as '2020'
Oliver Richters
Recursively calculate additional variables based on given summations and add them to the given mif file
fillMissingSummations(mifFile, summationsFile, iteration = 1, logFile = NULL)
fillMissingSummations(mifFile, summationsFile, iteration = 1, logFile = NULL)
mifFile |
path to mif file or a quitte object |
summationsFile |
in inst/summations folder that describes the required summation groups, or path to summations file |
iteration |
keeps track of number of recursive calls, leave to default |
logFile |
path to logFile. if NULL, write to stdout, if FALSE don't write |
Falk Benke, Renato Rodrigues
add missing variable values if the value can be obtained from two other reported results.
fillSummationPairs(mifFile, summationsFile)
fillSummationPairs(mifFile, summationsFile)
mifFile |
path to mif file or a quitte object |
summationsFile |
in inst/summations folder that describes the required summation groups, or path to summations file |
Renato Rodrigues
Checks for a run if it is correctly fixed on the reference run for t < startyear
fixOnRef( data, refscen, startyear, ret = "boolean", failfile = NULL, relDiff = 1e-12 )
fixOnRef( data, refscen, startyear, ret = "boolean", failfile = NULL, relDiff = 1e-12 )
data |
quitte object or mif file |
refscen |
scenario name of reference scenario, or file or quitte object with reference data |
startyear |
first time step for which scenarios and reference scenario are expected to differ |
ret |
"boolean": just return TRUE/FALSE if check was successful "fails": data frame with mismatches between scenario and reference data "fixed": quitte object with data correctly fixed on reference data "TRUE_or_fixed": TRUE if check was successful, fixed object otherwise |
failfile |
csv file to which mismatches are written to |
relDiff |
threshold for acceptable relative difference |
see parameter 'ret'
Oliver Richters
Generates an IIASA submission from REMIND or MAgPIE runs by applying a project-specific mapping. The script starts from 'mifs' which can be a directory with mif files, a vector of files or a quitte object. In outputDirectory/outputFilename, you will get the data in a joint xlsx or mif file.
generateIIASASubmission( mifs = ".", mapping = NULL, model = NULL, removeFromScen = NULL, addToScen = NULL, dropRegi = "auto", outputDirectory = "output", outputFilename = "submission.xlsx", logFile = if (is.null(outputFilename)) NULL else paste0(gsub("\\.[a-zA-Z]+$", "_log.txt", outputFilename)), iiasatemplate = NULL, generatePlots = FALSE, timesteps = c(seq(2005, 2060, 5), seq(2070, 2100, 10)), checkSummation = TRUE, mappingFile = NULL, naAction = "na.omit" )
generateIIASASubmission( mifs = ".", mapping = NULL, model = NULL, removeFromScen = NULL, addToScen = NULL, dropRegi = "auto", outputDirectory = "output", outputFilename = "submission.xlsx", logFile = if (is.null(outputFilename)) NULL else paste0(gsub("\\.[a-zA-Z]+$", "_log.txt", outputFilename)), iiasatemplate = NULL, generatePlots = FALSE, timesteps = c(seq(2005, 2060, 5), seq(2070, 2100, 10)), checkSummation = TRUE, mappingFile = NULL, naAction = "na.omit" )
mifs |
path to mif files or directories with mif files of a REMIND run, or quitte object |
mapping |
mapping names such as c("AR6", "AR6_NGFS") or a vector of mapping file names. If NULL, the user is asked. Multiple mappings are concatenated. |
model |
name of model as registered with IIASA |
removeFromScen |
regular expression to be removed from scenario name (optional). Example: '_d50|d95' |
addToScen |
string to be added as prefix to scenario name (optional) |
dropRegi |
regions to be dropped from output. Default is "auto" which drops aggregate regions for REMIND EU21. Set to NULL for none. Set c("auto", "World") for dropping EU21 aggregate plus World |
outputDirectory |
path to directory for the generated submission (default: output).
If NULL, no files are written and |
outputFilename |
filename of the generated submission. Must be mif or xlsx file.
If NULL, submission data is returned.
If |
logFile |
path to the logfile with warnings as passed to generateMappingfile, checkIIASASubmission
(default: outputDirectory/submission_log.txt). Set to FALSE for none.
If |
iiasatemplate |
optional filename of xlsx or yaml file provided by IIASA used to delete superfluous variables and adapt units |
generatePlots |
boolean, whether to generate plots of failing summation checks. Needs outputDirectory not NULL. |
timesteps |
timesteps that are accepted in final submission |
checkSummation |
either TRUE to identify summation files from mapping, or filename, or FALSE |
mappingFile |
has no effect and is only kept for backwards-compatibility |
naAction |
a function which indicates what should happen when the data contain NA values. |
To provide the mapping, two options exist:
If you want to generate the mapping from one or more mappings from the inst/mappings folder, set mapping = c("AR6", "AR6_NGFS") or so.
Alternatively, you can provide a path or a vector of paths to mapping files. If you provide your own mapping
files, make sure they follow the standard format (see getTemplate
for more information)
It is also possible, to mix both options, e.g. c("AR6", "/path/to/mapping_file.csv")
In any case, multiple mapping files will be concatenated.
iiasatemplate is a xlsx or yaml file provided by IIASA with the variable + unit definitions that are accepted in the database. The function 'priceIndicesIIASA' will be called to calculate price indices that are missing or with the wrong base year. 'checkIIASASubmission' will be called to remove all variables that are not accepted in the database.
For all elements of the parameter mapping that contain a summation file in inst/summations, the function 'checkSummations' is called to verify variable summation checks.
To alter the data, you can use those parameters: model, addToScen, removeFromScen and timesteps.
For a broader overview of the submission process, consult https://github.com/remindmodel/remind/blob/develop/tutorials/13_Submit_to_IIASA_database.md
Falk Benke, Oliver Richters
## Not run: # Simple use. Generates submission file in output folder: generateIIASASubmission( mifs = "/path/to/REMIMD/mifs", model = "REMIND-MAgPIE 2.1-4.2", mapping = "NAVIGATE" ) ## End(Not run)
## Not run: # Simple use. Generates submission file in output folder: generateIIASASubmission( mifs = "/path/to/REMIMD/mifs", model = "REMIND-MAgPIE 2.1-4.2", mapping = "NAVIGATE" ) ## End(Not run)
Retrieves latest mapping for a given project. Mappings must contain the columns "variable", "unit", "piam_variable", "piam_unit", "piam_factor". Mappings are csv files with semicolon as a separator and no quotation marks around fields, see main README.Rd file
getMapping(project = NULL, requiredColsOnly = FALSE)
getMapping(project = NULL, requiredColsOnly = FALSE)
project |
name of requested mapping, or file name pointing to a mapping |
requiredColsOnly |
whether only the mandatory 5 columns are return set to TRUE if you want to concatenate mappings |
Falk Benke, Oliver Richters
## Not run: getMapping("ECEMF") getMapping("/path/to/mapping/file") ## End(Not run)
## Not run: getMapping("ECEMF") getMapping("/path/to/mapping/file") ## End(Not run)
Retrieves all variables allocated to source potentially used in mappings to project variables
getMappingVariables(project = TRUE, sources = TRUE)
getMappingVariables(project = TRUE, sources = TRUE)
project |
name of the project of requested mappings such as c('AR6', 'AR6_NGFS') or 'mapping.csv'. Use TRUE for all mappings. |
sources |
model abbreviation(s) used in 'source' column. R = REMIND, M = MAgPIE, T = EDGE-T, B = Brick, C = Climate/MAGICC, TRUE = all |
Falk Benke, Oliver Richters
getMappingVariables("AR6", "RT")
getMappingVariables("AR6", "RT")
legacy function to be used by remind2
getREMINDTemplateVariables(project)
getREMINDTemplateVariables(project)
project |
name of the project of requested mapping |
Retrieves latest summation group file for a given project
getSummations(project = NULL, format = "dataframe")
getSummations(project = NULL, format = "dataframe")
project |
name of the project of requested summation group, or summation group filename which can be a csv file of a xlsx file where the first sheet containing a 'variable' column is expected to have a 'components' column as well. If project is a https://files.ece.iiasa.ac.at/*.xlsx URL, it will be automatically downloaded. |
format |
either "dataframe" or "list", the latter ignores the factor column |
Oliver Richters
for backwards compatibility
getTemplate(project = NULL)
getTemplate(project = NULL)
project |
name of requested mapping, or file name pointing to a mapping |
Loads IIASA template (xlsx or yaml)
loadIIASATemplate(iiasatemplate)
loadIIASATemplate(iiasatemplate)
iiasatemplate |
filename of xlsx or yaml file provided by IIASA |
Oliver Richters
## Not run: # Simple use. Generates submission file in output folder: loadIIASATemplate( iiasatemplate <- "template.xlsx" ) ## End(Not run)
## Not run: # Simple use. Generates submission file in output folder: loadIIASATemplate( iiasatemplate <- "template.xlsx" ) ## End(Not run)
Retrieves mapping file names
mappingNames(project = NULL)
mappingNames(project = NULL)
project |
name of the project of requested mapping. If not specified, all existing mappings will be returned |
mapping file(s)
Oliver Richters
Model intercomparison plots: area plots based on summation groups, line plots for further variables. Creates a PDF for each model and scenario in the outputDirectory
plotIntercomparison( mifFile, outputDirectory = "output", summationsFile = "AR6", renameModels = NULL, lineplotVariables = TRUE, areaplotVariables = TRUE, interactive = FALSE, mainReg = "World", plotby = c("model", "scenario"), diffto = NULL, yearsBarPlot = c(2030, 2050), postfix = format(Sys.time(), "_%Y-%m-%d_%H.%M.%S") )
plotIntercomparison( mifFile, outputDirectory = "output", summationsFile = "AR6", renameModels = NULL, lineplotVariables = TRUE, areaplotVariables = TRUE, interactive = FALSE, mainReg = "World", plotby = c("model", "scenario"), diffto = NULL, yearsBarPlot = c(2030, 2050), postfix = format(Sys.time(), "_%Y-%m-%d_%H.%M.%S") )
mifFile |
path to the mif or xlsx file to apply summation checks to, or quitte object |
outputDirectory |
path to directory to place one PDF for each model and scenario |
summationsFile |
in inst/summations folder that describes the required summation groups. set to "extractVariableGroups" to extract it automatically from data based on |+| notation |
renameModels |
vector with oldname = newname |
lineplotVariables |
vector with variable names for lineplots or filenames of files containing a 'variable' column (or both) |
areaplotVariables |
vector with variable names for areaplot or filenames of files containing a 'variable' column. Only those available in the summationsFile can be plotted. |
interactive |
allows to select various settings interactively: subset of c("variable", "model", "scenario", "region", "period", "plotby", "diffto", "yearsBarPlot") or set to TRUE to select all of them |
mainReg |
region name of main region to be passed to mip |
plotby |
whether you would like to have everything plotted by scenario, model and/or onefile. set to NULL to be asked. |
diffto |
if specified, the difference to this scenario is calculated and plotted |
yearsBarPlot |
years for which bar plots are to be made. |
postfix |
to the filename, defaults to something like "_2024-09-05_12.47.28" |
Oliver Richters
## Not run: plotIntercomparison(quitte::quitte_example_dataAR6, lineplotVariables = c("Temperature|Global Mean", "Population")) ## End(Not run)
## Not run: plotIntercomparison(quitte::quitte_example_dataAR6, lineplotVariables = c("Temperature|Global Mean", "Population")) ## End(Not run)
Add price index
priceIndicesAdd(mifdata, priceIndices, scenBase = NULL, referenceYear = 2020)
priceIndicesAdd(mifdata, priceIndices, scenBase = NULL, referenceYear = 2020)
mifdata |
file or data that can be converted into quitte object |
priceIndices |
vector of missing price index variable names |
scenBase |
optional scenario name of baseline scenario used to calculate index |
referenceYear |
in which index = 1 |
Oliver Richters
Fixes price indices with wrong reference year
priceIndicesFix(mifdata, priceIndices, referenceYear = 2020)
priceIndicesFix(mifdata, priceIndices, referenceYear = 2020)
mifdata |
file or data that can be converted into quitte object |
priceIndices |
vector of missing price index variable names |
referenceYear |
in which index = 1 |
Oliver Richters
Add Price||Index variables requested in iiasatemplate but missing in data, if Price| is present in data. Extracts reference year automatically from unit
priceIndicesIIASA(mifdata, iiasatemplate, scenBase = NULL)
priceIndicesIIASA(mifdata, iiasatemplate, scenBase = NULL)
mifdata |
file or data that can be converted into quitte object |
iiasatemplate |
filename of xlsx or yaml file provided by IIASA |
scenBase |
optional scenario name of baseline scenario used to calculate index |
Oliver Richters
Pass a character vector containing filenames and directories. Returns data from all files and all '.mif' files in the directories.
readMifs(...)
readMifs(...)
... |
path to mif files or directories with mif files of a REMIND run or quitte object |
Falk Benke, Oliver Richters
## Not run: # Simple use. Generates submission file in output folder: readMifs( mifs = "/path/to/REMIMD/mifs", ) ## End(Not run)
## Not run: # Simple use. Generates submission file in output folder: readMifs( mifs = "/path/to/REMIMD/mifs", ) ## End(Not run)
Remove |+|, |++| etc. from variable names
removePlus(x)
removePlus(x)
x |
vector with variable names |
variable names without any plus notation
Oliver Richters
#' removePlus(c("FE|+|CDR", "FE|CDR|DACCS"))
#' removePlus(c("FE|+|CDR", "FE|CDR|DACCS"))
add variables that are missing based on a list of formulas
renameOldVariables(mifdata, variables, logFile = NULL)
renameOldVariables(mifdata, variables, logFile = NULL)
mifdata |
quitte object or filename of mif file |
variables |
the list of requested variables |
logFile |
filename of file for logging |
quitte object with adapted mif data
Oliver Richters
Generate valid path to logFile and make sure the outputDirectory exists. If logFile is just a file name without any further path info, put logFile in outputDirectory
setLogFile(outputDirectory = NULL, logFile = NULL)
setLogFile(outputDirectory = NULL, logFile = NULL)
outputDirectory |
path to directory to place generated files |
logFile |
path or name for log file |
Oliver Richters
Retrieves summation group file names
summationsNames(project = NULL)
summationsNames(project = NULL)
project |
name of the project of requested summation file. If not specified, all existing summation files will be returned |
summation file name(s)
Oliver Richters
From mappingData, return the piam_variable sum as a string for a given exportname
sumNamesWithFactors(mappingData, exportname)
sumNamesWithFactors(mappingData, exportname)
mappingData |
mapping data as obtained by getMapping() |
exportname |
name to be matched in 'variable' column |
Oliver Richters
for backwards compatibility
templateNames(project = NULL)
templateNames(project = NULL)
project |
name of the project of requested mapping. If not specified, all existing mappings will be returned |
Provide information on variable, its mappings and summation groups
variableInfo(varname, mif = NULL, mapping = NULL)
variableInfo(varname, mif = NULL, mapping = NULL)
varname |
string with variable name |
mif |
filename of miffile |
mapping |
vector of mapping shortcuts (AR6, NAVIGATE) or mapping filenames. NULL means all |
prints human-readable summary to the user
Oliver Richters
# Simple use. prints human-readable summary to the reader on Emi|CO2: variableInfo( "Emi|CO2" )
# Simple use. prints human-readable summary to the reader on Emi|CO2: variableInfo( "Emi|CO2" )