R/calcVegfruit_share.R

Defines functions calcVegfruit_share

calcVegfruit_share<-function(){
  out<-calcOutput(type = "Demand",aggregate = F)
  x<-collapseNames(out[,,"vegfruit_share"],collapsedim = 1)
  weight<-collapseNames(out[,,"dem"],collapsedim = 1) + 10^-10
  return(x=list(x=x,weight=weight,
                unit="Share",
                description="Share of food demand for vegetable, fruit and nut products in total caloric demand"
  ))
}
pik-piam/mrplayground documentation built on June 2, 2021, 9:25 p.m.