#' 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.