R/reportCostOverall.R

Defines functions reportCostOverall

Documented in reportCostOverall

#' @title reportCostOverall
#' @description reports MAgPIE costs
#' 
#' @export
#' 
#' @param gdx GDX file
#' @return Magpie object associated with overall costs and value of production
#' @author Edna J. Molina Bacca
#' @examples
#' 
#'   \dontrun{
#'     x <- reportCostOverall(gdx)
#'   }
#' @importFrom magclass getNames

reportCostOverall<-function(gdx){
  
  #Gross Value of production
  x <- CostOverall(gdx,level = "regglo")
  getNames(x)<-"Costs|Gross value of production"
  
  
  getNames(x) <- paste0(getNames(x)," (million US$05/yr)")
  
  return(x)
  

}
pik-piam/magpie4 documentation built on April 27, 2024, 2:12 p.m.