R/reportAgGDP.R

Defines functions reportAgGDP

Documented in reportAgGDP

#' @title reportAgGDP
#' @description reports MAgPIE Agricultural GDP Mio. USD05 MER
#'
#' @export
#'
#' @param gdx GDX file
#' @return Magpie object
#' @author Edna J. Molina Bacca
#' @examples
#' \dontrun{
#' x <- reportAgGDP(gdx)
#' }
#' @importFrom magclass getNames
#' @importFrom magpiesets reporthelper

reportAgGDP <- function(gdx) {
  # Value added Agricultural GDP
  x <- AgGDP(gdx, level = "regglo")
  getNames(x) <- "Value|Agriculture GDP (million US$05/yr)"
  return(x)
}
pik-piam/magpie4 documentation built on April 27, 2024, 2:12 p.m.