getCells | R Documentation |
Extracts cell names of a MAgPIE-object
getCells(x)
getCells(x) <- value
setCells(object, nm = "GLO")
x , object |
MAgPIE object |
value , nm |
cell names the data should be set to. |
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.
getCells returns cell names of the MAgPIE-object, whereas setCells returns the MAgPIE object with the manipulated cell names.
getCells(x) <- value
: set cell names
setCells()
: set cell names
Jan Philipp Dietrich
getRegions
, getNames
,
setNames
, getCPR
, read.magpie
,
write.magpie
, "magpie"
a <- as.magpie(1)
getCells(a)
setCells(a, "AFR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.