View source: R/collapseNames.R
collapseNames | R Documentation |
This function has been superseded by collapseDim
which is a
more generalized version of this function. Please use this one instead!
collapseNames(x, collapsedim = NULL, preservedim = NULL)
x |
MAgPIE object |
collapsedim |
If you want to remove the names of particular dimensions provide the dimensions here. Since the function only works in the third dimension, you have to count from there on (e.g. dim = 3.2 refers to collapsedim = 2). Alternatively, you can also specify the name of the dimension. Default: NULL. CAUTION with parameter collapsedim! You could also force him to remove dimnames, which are NOT the same for each element and so create duplicates in dimnames. |
preservedim |
If you want to remove the name of particular dimensions except some, you can specify the dimension(s) to preserve here. See collapsedim for naming convention. Note that preservedim will be ignored in the case, of a specified collapsedim |
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)
The provided MAgPIE object with collapsed names
Jan Philipp Dietrich, David Klein, Xiaoxi Wang
collapseDim
, getItems
,
"magpie"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.