water_price | R Documentation |
reads water prices from a MAgPIE gdx file
water_price(
gdx,
file = NULL,
level = "reg",
weight = "value",
index = FALSE,
index_baseyear = 2005,
digits = 4
)
gdx |
GDX file |
file |
a file name the output should be written to using write.magpie |
level |
spatial level of aggregation: "cell" (cellular), "reg" (regional), "glo" (global), "regglo" (regional and global) or any other aggregation level defined in superAggregate |
weight |
For determining weights to use for generating water prices at levels beyond 'cellular'. Takes "value" and "quantity". "value" sums regional weights by value of water per cluster, "quantity" sums regional weight by qty of water per cluster |
index |
FALSE (default) or TRUE |
index_baseyear |
baseyear to use for index calculation (only used if index=TRUE) |
digits |
integer. For rounding of the return values |
A MAgPIE object containing the water shadow prices (US Dollar/cubic metre).
Markus Bonsch, Vartika Singh, Miodrag Stevanovic
## Not run:
x <- water_price(gdx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.