magclass (version 4.107.0)

getItems: Get Items

Description

Extract items of a given (sub-)dimension of a MAgPIE-object

Usage

getItems(x, dim, split = FALSE)

Arguments

x

MAgPIE object

dim

Dimension for which the items should be returned. Either number or name of dimension. See dimCode for more details.

split

Boolean which determines whether a main dimension should be split in subdimensions. Only applicable to main dimensions (1,2,3) and ignored for all other.

Value

items of the requested dimension in the MAgPIE-object. If split=TRUE and applied to a main dimension (1,2,3) a list of items for each sub-dimension.

See Also

dimCode

Examples

Run this code
# NOT RUN {
getItems(population_magpie,"scenario")
getItems(population_magpie,3.1)
# }

Run the code above in your browser using DataLab