Skip to content

All functions

areUnitsIdentical()
Check whether units are identical following a specified list
checkFixUnits()
Check units in IIASA submission by comparing mifdata to a project template
checkIIASASubmission()
Check IIASA submission by comparing mif data to a template file (xlsx or yaml) provided by IIASA
checkMissingVars()
Check whether all variables required by mapping are present in mifdata for given source
checkNGFS()
Check NGFS submission by comparing mif data to a template file (xlsx or yaml) provided by IIASA
checkSummations()
Checks for a run if the variables sum up as expected and logs spotted gaps
checkSummationsRegional()
Checks for a run if the regions for selected variables sum up as expected
checkUnitFactor()
Check unit factor in template
checkVarNames()
checkVariablesNames checks reporting and mappings on inconsistency in variable names
convertHistoricalData()
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
extractReferenceYear()
Extract reference year for price indices from unit
fillMissingSummations()
Recursively calculate additional variables based on given summations and add them to the given mif file
fillSummationPairs()
add missing variable values if the value can be obtained from two other reported results.
fixOnRef()
Checks for a run if it is correctly fixed on the reference run for t < startyear
generateIIASASubmission()
generateIASASubmission
getMapping()
getMapping
getMappingVariables()
Retrieves all variables allocated to source potentially used in mappings to project variables
getREMINDTemplateVariables()
legacy function to be used by remind2
getSummations()
Retrieves latest summation group file for a given project
getTemplate()
for backwards compatibility
loadIIASATemplate()
Loads IIASA template (xlsx or yaml)
mappingNames()
Retrieves mapping file names
piamInterfaces piamInterfaces-package
piamInterfaces: Project specific interfaces to REMIND / MAgPIE
plotIntercomparison()
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
priceIndicesAdd()
Add price index
priceIndicesFix()
Fixes price indices with wrong reference year
priceIndicesIIASA()
Add Price||Index variables requested in iiasatemplate but missing in data, if Price| is present in data. Extracts reference year automatically from unit
readMifs()
Pass a character vector containing filenames and directories. Returns data from all files and all '.mif' files in the directories.
removePlus()
Remove |+|, |++| etc. from variable names
renameOldInMappings()
renameOldInMappings
renameOldVariables()
add variables that are missing based on a list of formulas
setLogFile()
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
sumNamesWithFactors()
From mappingData, return the piam_variable sum as a string for a given exportname
summationsNames()
Retrieves summation group file names
templateNames()
for backwards compatibility
updatePlusUnit()
updatePlusUnit
variableInfo()
Provide information on variable, its mappings and summation groups
writeMapping()
writeMapping