income: income

View source: R/income.R

incomeR Documentation

income

Description

Calculates income based on a MAgPIE gdx file

Usage

income(
  gdx,
  file = NULL,
  level = "reg",
  per_capita = TRUE,
  type = "ppp",
  after_shock = FALSE
)

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

per_capita

income per capita or aggregated for the total population

type

ppp for purchase power parity, mer for market exchange rate

after_shock

FALSE is using the exogenous real income, TRUE is using the endogeenous real income that takes into account food price change on real income

Value

annual income as MAgPIE object (unit depends on per_capita: US$2017 MER/cap/yr (TRUE), US$2017 MER/yr (FALSE))

Author(s)

Florian Humpenoeder, Benjamin Bodirsky, Felicitas Beier

Examples

## Not run: 
x <- income(gdx)

## End(Not run)


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