#' Read in regression coefficients for central feed shares
#'
#' @description
#' Read in csv file containing coefficients of non-linear regression analysis
#' for the calculation of future central feed shares in feed baskets dependent
#' on livestock productivity trends
#'
#' @return MAgPIE object containing regression coefficients
#' @author Isabelle Weindl
#' @seealso \code{\link{readSource}}
#' @export
#'
#' @examples
#' \dontrun{
#' a <- readSource("FeedShareReg")
#' }
#' @importFrom magclass read.magpie
readFeedShareReg <- function(){
file <- "DM_feed_shr_regression_nls.csv"
feed_shr_regr<-read.magpie(file)
return(feed_shr_regr)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.