IntakeDetailed: IntakeDetailed

View source: R/IntakeDetailed.R

IntakeDetailedR Documentation

IntakeDetailed

Description

Calculates detailed or aggregated per-capita kcal intake including exogenous scenarios

Usage

IntakeDetailed(
  gdx,
  file = NULL,
  level = "reg",
  product_aggr = 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; "reg" (regional), "glo" (global), "regglo" (regional and global) or any other aggregation level defined in superAggregate

product_aggr

aggregate over products or not (boolean)

dir

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

spamfiledirectory

deprecated. please use dir instead

Details

Calculation of kcal food intake is possible for both exogenous diet scenarios and endogenous estimation from food demand model

Value

Calories as MAgPIE object (unit: kcal/cap/day)

Author(s)

Isabelle Weindl

Examples


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


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