R/reportPriceBioenergy.R

Defines functions reportPriceBioenergy

Documented in reportPriceBioenergy

#' @title reportPriceBioenergy
#' @description reports bioenergy prices
#'
#' @export
#'
#' @param gdx GDX file
#' @return bioenergy price as MAgPIE object Unit: see names
#' @author Florian Humpenoeder
#' @examples
#'
#'   \dontrun{
#'     x <- reportPriceBioenergy(gdx)
#'   }
#'

reportPriceBioenergy<-function(gdx){
  x <- prices(gdx,level="regglo",products = c("begr","betr"),product_aggr = TRUE,attributes = "ge")
  getNames(x) <- "Prices|Bioenergy (US$05/GJ)"

  return(x)
}
pik-piam/magpie4 documentation built on Sept. 14, 2024, 10:08 p.m.