ruralDemandShares: ruralDemandShares

View source: R/ruralDemandShares.R

ruralDemandSharesR Documentation

ruralDemandShares

Description

reports rural demand shares based on local consumption

Usage

ruralDemandShares(
  gdx,
  type = "tradOnly",
  level = "reg",
  product_aggr = TRUE,
  file = NULL
)

Arguments

gdx

GDX file

type

Type of ratio that should be calculated

  • all: How much rural & trad demand as a share of all demand is satisfied locally

  • tradOnly: How much rural & trad demand as a share of rural & trad demand is satisfied locally

  • potential: How much total gridded demand is potentially satisfied by gridded production

level

spatial aggregation to report employment ("reg", "glo" or "regglo")

product_aggr

sum over products if TRUE

file

a file name the output should be written to using write.magpie

Value

share of food consumed locally

Author(s)

David M Chen

Examples

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

## End(Not run)

pik-piam/magpie4 documentation built on April 27, 2024, 2:12 p.m.