magclass (version 4.107.0)

setNames-methods: Get dataset names

Description

Extracts dataset names of a MAgPIE-object

Usage

# S4 method for magpie
setNames(object = nm, nm)

Arguments

object

MAgPIE object

nm

a vector of names current names should be replaced with. If only one data element exists you can also set the name to NULL.

Methods

list("signature(object = \"ANY\")")

normal setNames method

list("signature(object = \"magpie\")")

setNames for MAgPIE objects

Details

setNames is a shortcut to use a MAgPIE object with manipulated data names. The setNames method uses the variable names "object" and "nm" in order to be consistent to the already existing function setNames.

See Also

getNames,