Intake | R Documentation |
Calculates the per-capita kcal intake from the food demand model
Intake(
gdx,
file = NULL,
level = "reg",
calibrated = TRUE,
pregnancy = FALSE,
per_capita = TRUE,
age = FALSE,
sex = FALSE,
bmi_groups = FALSE,
dir = ".",
spamfiledirectory = ""
)
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 requirements 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) for disaggregation |
spamfiledirectory |
deprecated. please use |
Demand definitions are equivalent to FAO Food supply categories
calories as MAgPIE object (unit depends on per_capita: kcal/cap/day (TRUE), kcal/day (FALSE))
Benjamin Leon Bodirsky
## Not run:
x <- Intake(gdx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.