R/readPYieldCoeff.R

Defines functions readPYieldCoeff

Documented in readPYieldCoeff

#' Read in coefficients for calculating pasture intensification
#' 
#' @description 
#' Read in csv file containing coefficients of linear regression
#' for the calculation of future pasture intensification dependent 
#' on animal numbers
#'
#' @return MAgPIE object
#' @author Isabelle Weindl
#' @seealso \code{\link{readSource}}
#' @export
#'
#' @examples
#' \dontrun{
#' a <- readSource("PYieldCoeff")
#' }
#' @importFrom magclass read.magpie 
readPYieldCoeff <- function(){
  file <-  "pyieldcoeff.csv"
  x<-read.magpie(file)
  return(x)
}
pik-piam/mrland documentation built on Nov. 23, 2024, 11:37 a.m.