collapseNames: Collapse dataset names

Description Usage Arguments Value Author(s) See Also Examples

Description

This function will remove names in the data dimension which are the same for each element (meaning that this data dimension contains exactly one element)

Usage

1
collapseNames(x,collapsedim=NULL)

Arguments

x

MAgPIE object

collapsedim

If you want to remove the names of particular dimensions provide the dimensions here. Default: NULL

Value

The provided MAgPIE object with collapsed names

Author(s)

Jan Philipp Dietrich, David Klein

See Also

getNames, setNames, "magpie"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 x <- new.magpie("GLO",2000,c("bla.a","bla.b"))  
 print(x)
 # An object of class "magpie"
 # , , bla.a
 #      y2000
 # GLO.1    NA
 # , , bla.b
 #      y2000
 # GLO.1    NA

 print(collapseNames(x))
 # An object of class "magpie"
 # , , a
 #      y2000
 # GLO.1    NA
 # , , b
 #      y2000
 # GLO.1    NA


Search within the magclass package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.