bodyweight: bodyweight

View source: R/bodyweight.R

bodyweightR Documentation

bodyweight

Description

Calculates the prevalence of underweight, normalweight, overweight (excluding obesity) and obesity. For more detailed body mass classifications see functions population or anthropometrics.

Usage

bodyweight(
  gdx,
  level = "reg",
  age = FALSE,
  sex = FALSE,
  share = FALSE,
  dir = ".",
  spamfiledirectory = "",
  population = NULL
)

Arguments

gdx

GDX file

level

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

age

if TRUE, demand is scaled down to age-groups and sex using food requirements

sex

if FALSE, female and male are aggregated, if sex, results are divided into males and females

share

if TRUE, data is provided 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

population

population information from GDX. Can be provided to speed up calculation process. Will be read from GDX, if not provided.

Details

Demand definitions are equivalent to FAO Food supply categories

Value

MAgPIE object with mio people or share of people in each weight category

Author(s)

Benjamin Leon Bodirsky

Examples


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


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