magclass (version 4.107.0)

fulldim: Reconstructs full dimensionality of MAgPIE objects

Description

If a MAgPIE object is created from a source with more than one data dimension, these data dimensions are combined to a single dimension. fulldim reconstructs the original dimensionality and reports it.

Usage

fulldim(x, sep = ".")

Arguments

x

A MAgPIE-object

sep

A character separating joined dimension names

Value

A list containing in the first element the dim output and in the second element the dimnames output of the reconstructed array.

See Also

as.magpie,unwrap,wrap

Examples

Run this code
# NOT RUN {
  a <- as.magpie(array(1:6,c(3,2),list(c("bla","blub","ble"),c("up","down"))))
  fulldim(a)


# }

Run the code above in your browser using DataLab