Intake: Intake

View source: R/Intake.R

IntakeR Documentation

Intake

Description

Calculates the per-capita kcal intake from the food demand model

Usage

Intake(
  gdx,
  file = NULL,
  level = "reg",
  calibrated = TRUE,
  pregnancy = FALSE,
  per_capita = TRUE,
  age = FALSE,
  sex = FALSE,
  bmi_groups = FALSE,
  dir = ".",
  spamfiledirectory = ""
)

Arguments

gdx

GDX file

file

a file name the output should be written to using write.magpie

level

Level of regional aggregation; "iso" ISO country codes, "reg" (regional), "glo" (global)

calibrated

if FALSE, the true regression outputs are used, if TRUE the values calibrated to the start years are used

pregnancy

if TRUE, adding the intake requriements for lactation and pregnancy

per_capita

per capita or aggregated for the population

age

if FALSE age and sex is aggregated

sex

if TRUE, data is provided by sex

bmi_groups

if TRUE data is proided by BMI group

dir

for gridded outputs: magpie output directory which contains a mapping file (rds or spam) disaggregation

spamfiledirectory

deprecated. please use dir instead

Details

Demand definitions are equivalent to FAO Food supply categories

Value

calories as MAgPIE object (unit depends on per_capita: kcal/cap/day (TRUE), kcal/day (FALSE))

Author(s)

Benjamin Leon Bodirsky

Examples


  ## Not run: 
    x <- Intake(gdx)
  
## End(Not run)


pik-piam/magpie4 documentation built on April 22, 2024, 3:34 p.m.