magclass (version 6.13.2)

getRegions: Get regions

Description

Extracts regions of a MAgPIE-object

Usage

getRegions(x)

getRegions(x) <- value

Value

Regions of the MAgPIE-object

Arguments

x

MAgPIE object

value

Vector containing the new region names of the MAgPIE objects. If you also want to change the mapping of regions to cell please use getRegionList instead.

Functions

  • getRegions(x) <- value: overwrite region names

Author

Jan Philipp Dietrich

See Also

getYears, getNames, getCPR, read.magpie, write.magpie, "magpie"

Examples

Run this code

# a <- read.magpie("example.mz")
# getRegions(a)

Run the code above in your browser using DataLab