tradeValue | R Documentation |
Calculates the value of traded goods based on a gdx file
tradeValue(
gdx,
file = NULL,
level = "reg",
products = "k_trade",
product_aggr = FALSE,
type = "net-exports",
glo_weight = "export",
relative = FALSE
)
gdx |
GDX file |
file |
a file name the output should be written to using write.magpie |
level |
Level of regional aggregation ("reg", "glo", "regglo") |
products |
Selection of products (either by naming products, e.g. "tece", or naming a set,e.g."kcr") |
product_aggr |
aggregate over products or not (boolean) |
type |
exports-imports ("net-exports"), gross imports ("imports") or gross exports ("exports"); only valid if relative=FALSE |
glo_weight |
Decides the calculation of global prices.
Weighting schemes are applied for estimation of global producer price.
If |
relative |
if relative=TRUE, self sufficiencies are reported (the amount of production divided by domestic demand) |
A MAgPIE object containing the value of trade flows in Million of US dollars
Misko Stevanovic, Florian Humpenoeder, Edna J. Molina Bacca
## Not run:
x <- tradeValue(gdx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.