magclass (version 4.107.0)

getDim: getDim

Description

Function which tries to detect the dimension to which the given elems belong

Usage

getDim(elems, x)

Arguments

elems

A vector of characters containing the elements that should be found in the MAgPIE object

x

MAgPIE object in which elems should be searched for.

Value

The name of the dimension in which elems were found.

See Also

mcalc,dimCode

Examples

Run this code
# NOT RUN {
 data(population_magpie)
 magclass:::getDim(c("AFR","CPA"),population_magpie)

# }

Run the code above in your browser using DataCamp Workspace