powered by
Changes the order of the 3rd dimension in a magpie object similar to unwrapping and applying the aperm command, but more efficient.
dimOrder(x, perm)
magpie object
vector with the new order of the 3rd dimension
# NOT RUN { # } # NOT RUN { pop <- maxample("pop") x <- setNames(pop,c("kj","kej")) * pop dimOrder(x=x,perm=c(2,1)) # }
Run the code above in your browser using DataLab