Learn R Programming

magclass (version 3.74)

dimCode: dimCode

Description

Function converts a dimension name or number to a dimension Code used for MAgPIE objects

Usage

dimCode(dim, x, missing = 0)

Arguments

dim
A vector of dimension numbers or dimension names which should be translated
x
MAgPIE object in which the dimensions should be searched for.
missing
Either a value to which a dimension should be set in case that it is not found (default is 0), or "stop" indicating that the function should throw an error in these cases.

Value

See Also

mselect, .getDim

Examples

Run this code
data(population_magpie)
dimCode(c("t","scenario","blablub"),population_magpie)

Run the code above in your browser using DataLab