LivestockDemStructure: LivestockDemStructure

View source: R/LivestockDemStructure.R

LivestockDemStructureR Documentation

LivestockDemStructure

Description

Calculates the share of different livestock commodities in total livestock product consumption on the basis of chosen attribute

Usage

LivestockDemStructure(
  gdx,
  file = NULL,
  level = "reg",
  after_shock = TRUE,
  calibrated = TRUE,
  attributes = "kcal",
  fish = FALSE
)

Arguments

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)

after_shock

FALSE is using the exogenous real income and the prices before a shock, TRUE is using the endogeenous real income that takes into account food price change on real income

calibrated

if FALSE, the true regression outputs are used, if TRUE the values calibrated to the start years are used

attributes

unit: kilocalories per day ("kcal"), g protein per day ("protein"). Mt reactive nitrogen ("nr").

fish

if true, livestock share includes fish, otherwhise not

Value

magpie object with the livestock demand structure in a region or country. Unit is dimensionsless, but value depends on chosen attribute

Author(s)

Isabelle Weindl

Examples


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


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