R/readForestryProductionRatio.R

Defines functions readForestryProductionRatio

#' Read Forestry Production Ratio
#' 
#' @return magpie object of the proportion of production coming from plantations
#' @author Abhijeet Mishra
#' @seealso \code{\link{readSource}}
#' @examples
#' 
#' \dontrun{ a <- readSource("ForestryProductionRatio")
#' }
#' 
#' @importFrom magclass as.magpie
#' @importFrom magclass magpiesort
#' @importFrom madrat toolSubtypeSelect

readForestryProductionRatio<-function(){
  x<-read.csv("forestry_production_ratio.csv",header = F)

  x<-as.magpie(x,spatial=1,temporal=2,datacol=3)
  x <- setNames(x,NULL)
  
  return(x)
}
pik-piam/moinput documentation built on June 9, 2020, 12:23 p.m.