dp.inputs.e0.default: Get the default input life expectancy at birth

View source: R/extract-dp.R

dp.inputs.e0.defaultR Documentation

Get the default input life expectancy at birth

Description

Get the default input life expectancy at birth (e0) by year and sex. These life expectancy trends typically come from the latest UN Population Division World Population Prospects revision. These may differ from the user-editable life expectancy used in Spectrum calculation, which can be accessed using dp.inputs.e0.

Usage

dp.inputs.e0.default(
  dp.raw,
  direction = "wide",
  first.year = NULL,
  final.year = NULL
)

Arguments

dp.raw

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

direction

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

first.year

First year of the projection. If first.year=NULL, it will be filled in using dp.inputs.first.year()

final.year

Final year of the projection. If final.year=NULL, it will be filled in using dp.inputs.final.year()

Value

A data frame.


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