complete_magpie: complete_magpie

Description Usage Arguments Value Author(s) See Also Examples

View source: R/complete_magpie.R

Description

MAgPIE objects can be incomplete to reduce memory. This function blows up a magpie object to its real dimensions, so you can apply unwrap.

Usage

1
complete_magpie(x, fill = NA)

Arguments

x

MAgPIE object which should be completed.

fill

Value that shall be written into the missing entries

Value

The completed MAgPIE object

Author(s)

Benjamin Bodirsky

See Also

add_dimension,clean_magpie

Examples

1
2
3
4
5
6
 data(population_magpie)
 a <- complete_magpie(population_magpie)
 b <- add_dimension(a)
 c <- add_dimension(a,nm="dummy2")
 incomplete<-mbind(b[,,1],c)
 d<-complete_magpie(incomplete)

magclass documentation built on May 29, 2017, 8:03 p.m.

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