Extracts cell names of a MAgPIE-object
Value
getCells returns cell names of the MAgPIE-object, whereas setCells returns the MAgPIE object with the manipulated cell names.
Details
setCells is a shortcut to use a MAgPIE object with manipulated cell names. setCells uses the variable names "object" and "nm" in order to be consistent to the already existing function setNames.
See also
getRegions, getNames,
setNames, getCPR, read.magpie,
write.magpie, "magpie"
Other GetterSetter:
getCPR(),
getComment(),
getCoords(),
getDim(),
getItems(),
getNames(),
getRegionList(),
getRegions(),
getSets(),
getYears(),
setItems(),
setNames-methods
Examples
a <- as.magpie(1)
getCells(a)
#> [1] "GLO"
setCells(a, "AFR")
#> AFR
#> 1