R/readIfBB.R

Defines functions readIfBB

Documented in readIfBB

#' @title readIfBB
#' @description reads data on historic bioplastic production from csv
#' source: "Biopolymers facts and statistics 2021" page 58, Institute for Bioplastics and Biocomposites (IfBB)
#' @return data as MAgPIE object
#' @author Debbora Leip
#' @examples
#' \dontrun{
#'   readSource("HistBioplasticProd")
#' }

readIfBB <- function() {

  x <- read.csv("HistBioplasticProd.csv", skip = 5)
  x <- as.magpie(x)

  return(x)
}
pik-piam/mrcommons documentation built on Dec. 8, 2024, 7:23 a.m.