magpie2dt | R Documentation |
Load a magpie object as data.table object with given colnames. Replaces years by numeric values, removing the leading y.
magpie2dt(
data,
regioncol = NULL,
yearcol = NULL,
datacols = NULL,
valcol = "value"
)
data |
a magpie object. |
regioncol |
name of the column containing REMIND regions, default is "region". |
yearcol |
name of the column containing the year, default is "year". |
datacols |
the names of the data dimension(s) of the magpie object. If no value is given, the name provided in the magpie object is used. |
valcol |
column to host actual value, default is "value" |
## Not run:
require(magpie)
dt <- magpie2dt(population_magpie)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.