water_price: water_price

View source: R/water_price.R

water_priceR Documentation

water_price

Description

reads water prices from a MAgPIE gdx file

Usage

water_price(
  gdx,
  file = NULL,
  level = "reg",
  weight = "value",
  index = FALSE,
  index_baseyear = 2005,
  digits = 4
)

Arguments

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

Value

A MAgPIE object containing the water shadow prices (US Dollar/cubic metre).

Author(s)

Markus Bonsch, Vartika Singh, Miodrag Stevanovic

Examples


  ## Not run: 
    x <- water_price(gdx)
  
## End(Not run)


pik-piam/magpie4 documentation built on May 2, 2024, 5:29 p.m.