lt_long: life table helper functions for WPP

View source: R/lt_helper_functions_wpp.R

lt_longR Documentation

life table helper functions for WPP

Description

This function reshapes the wide life table data frame returned by the DemoTools functions lt_abridged() or lt_single_mx() and retuns a long data frame with the "indicator", "age_start", "age_span", and value" columns used for WPP.

Usage

lt_long(life_table_df)

Arguments

life_table_df

data frame. life table output by the lt_abridged or lt_single_mx functions of DemoTools.

Details

#' Take life tables output from lt functions in DemoTools and reshape to long data frame

Value

a long data frame with columns "indicator" containing the life table column label, "age_start" and "age_span", and "value" containing the numeric value associated with the life table indicator

Author(s)

Sara Hertog


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.