~~ Methods for Function as.data.frame ~~

Share:

Description

~~ Methods for function as.data.frame ~~

Arguments

x

A MAgPIE-object

rev

The revision of the algorithm that should be used for conversion. rev=1 creates columns with the predefined names Cell, Region, Year, Data1, Data2,... and Value, rev=2 uses the set names of the MAgPIE object for naming and adds an attribute "dimtype" to the data.frame which contains information about the types of the different columns (spatial, temporal, data or value).

Methods

signature(x = "magpie")

Conversion creates columns for Cell, Region, Year, Data1, Data2,... and Value

Examples

1
2
3
data(population_magpie)
head(as.data.frame(population_magpie))
head(as.data.frame(population_magpie,rev=2))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.