R/nr_production_pasture.R

Defines functions nr_production_pasture

#' nr_production_pasture
#'
#' @param fulldata data to perform actions on
#'
#' @author Jan-Philipp Dietrich
nr_production_pasture<-function(fulldata) {
    return(
        setNames(collapseNames(readGDX(fulldata,"ov_prod_reg", format="first_found")[,,"pasture"][,,"level"])*
                     collapseNames(readGDX(fulldata, "im_attributes_harvest", format="first_found")[,,"nr"][,,"pasture"]),"pasture")
    )  
} 
pik-piam/nitrogen documentation built on Nov. 5, 2019, 12:48 a.m.