magclass (version 6.13.2)

unwrap: Unwrap

Description

Creates a higher dimensional array by separating all subdimensions in the third dimension of a MAgPIE object and returning them as separate dimension.

Usage

unwrap(x, sep = NULL)

Value

An array with the full dimensionality of the original data

Arguments

x

A MAgPIE object

sep

deprecated, please do not use anymore

Author

Jan Philipp Dietrich

See Also

wrap,fulldim

Examples

Run this code

a <- as.magpie(array(1:6, c(3, 2), list(c("bla", "blub", "ble"), c("up", "down"))))
unwrap(a)

Run the code above in your browser using DataLab