calcFoodSupplyPast: calcFoodSupplyPast

View source: R/calcFoodSupplyPast.R

calcFoodSupplyPastR Documentation

calcFoodSupplyPast

Description

Calculates the food supply (as defined by FAO, including intake and household waste) for the past.

Usage

calcFoodSupplyPast(
  per_capita = TRUE,
  products = NULL,
  product_aggr = FALSE,
  populationweight = "PopulationPast",
  attributes = c("kcal", "protein", "wm")
)

Arguments

per_capita

if true, calculates per capita demand per day, otherwhise total demand per year

products

a set with the products that shall be provided, e.g. kall. If NULL, the products are provided that are in the primary data

product_aggr

if TRUE, all products are summed up, if "maingroups" products are summed over livestock products, staples and vegfruits.

populationweight

datasource of populationweight: FAO can be selected in order to better meet exact values. Normal datasource is PopulationPast

attributes

attributes of different products,i.e., kcal,protein,wm

Value

List of magpie objects with results on country level, weight on country level, unit and description.

Author(s)

Benjamin Leon Bodirsky, Xiaoxi Wang

See Also

calcFAOharmonized()

Examples

## Not run: 
calcOutput("FoodSupplyPast")

## End(Not run)


pik-piam/mrcommons documentation built on Dec. 8, 2024, 7:23 a.m.