Learn R Programming

magclass (version 3.74)

getCells: Get Cells

Description

Extracts cell names of a MAgPIE-object

Usage

getCells(x) getCells(x) <- value setCells(object,nm)

Arguments

x,object
MAgPIE object
value,nm
cell names the data should be set to.

Value

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"

Examples

Run this code
 a <- as.magpie(1)
 getCells(a)
 setCells(a,"AFR.1")

Run the code above in your browser using DataLab