IntakeDetailedProtein: IntakeDetailedProtein

View source: R/IntakeDetailedProtein.R

IntakeDetailedProteinR Documentation

IntakeDetailedProtein

Description

Calculates food-specific per-capita protein intake from magpie results in grams.

Usage

IntakeDetailedProtein(
  gdx,
  file = NULL,
  level = "reg",
  product_aggr = FALSE,
  dir = "."
)

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) for disaggregation

Value

Protein intake as MAgPIE object (unit: grams/cap/day)

Author(s)

Vartika Singh, Isabelle Weindl

Examples


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


pik-piam/magpie4 documentation built on Dec. 20, 2024, 1:59 p.m.