prices | R Documentation |
calcluates prices based on a MAgPIE gdx file
prices(
gdx,
file = NULL,
level = "reg",
products = "kall",
product_aggr = FALSE,
attributes = "dm",
type = "consumer",
glo_weight = "production"
)
gdx |
GDX file |
file |
a file name the output should be written to using write.magpie |
level |
Level of regional aggregation; "reg" (regional), "glo" (global), "regglo" (regional and global) or any other aggregation level defined in superAggregate |
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) |
attributes |
USD05MER per ton X (dm,nr,p,k,wm) except gross energy (ge) where it is USD05MER per GJ |
type |
"consumer" or "producer" prices. Producers' prices are calculated on the regional level as a sum of regional trade equation marginal values and respective global trade equation marginal values.For the non traded commodities, both global and regional producers prices are set to zero instead of NaN. |
glo_weight |
Decides the calculation of global prices. Weighting schemes are applied for
estimation of global producer price. If |
A MAgPIE object containing the consumer's or producers' prices (unit depends on attributes)
Misko Stevanovic, Florian Humpenoeder, Jan Philipp Dietrich, Xiaoxi Wang, Edna J. Molina Bacca
## Not run:
x <- prices(gdx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.