getCells: Get Cells

View source: R/getCells.R

getCellsR Documentation

Get Cells

Description

Extracts cell names of a MAgPIE-object

Usage

getCells(x)

getCells(x) <- value

setCells(object, nm = "GLO")

Arguments

x, object

MAgPIE object

value, nm

cell names the data should be set to.

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.

Value

getCells returns cell names of the MAgPIE-object, whereas setCells returns the MAgPIE object with the manipulated cell names.

Functions

  • getCells(x) <- value: set cell names

  • setCells(): set cell names

Author(s)

Jan Philipp Dietrich

See Also

getRegions, getNames, setNames, getCPR, read.magpie, write.magpie, "magpie"

Examples


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

magclass documentation built on May 29, 2024, 6:20 a.m.