dp.inputs.life.table: Get the input life table selection

View source: R/extract-dp.R

dp.inputs.life.tableR Documentation

Get the input life table selection

Description

Spectrum users may select a life table from a list of model life tables, or use a country-specific life table based on the latest World Population Prospects revision. This function indicates which selection the user made.

Usage

dp.inputs.life.table(dp.raw, direction = "wide")

Arguments

dp.raw

DemProj module data in raw format, as returned by read.raw.dp()

direction

Request "wide" (default) or "long" format data.

Value

The life table name as a factor

Details

dp.inputs.life.table just indicates which life table was selected. Life table indicators can be accessed separately: dp.inputs.surv returns survival ratios, and dp.inputs.e0 returns life expectancy at birth. To keep projection file sizes small, most other common life table indicators are not saved.

Supported life tables include:

  1. Coale-Demeny West

  2. Coale-Demeny North

  3. Coale-Demeny East

  4. Coale-Demeny South

  5. UN General

  6. UN Chile

  7. UN South Asia

  8. UN East Asia

  9. Country-specific (usually based on the latest WPP revision)

  10. Custom


rlglaubius/SpectrumUtils documentation built on Dec. 20, 2024, 7:31 a.m.