View source: R/lt_helper_functions_wpp.R
lt_long | R Documentation |
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.
lt_long(life_table_df)
life_table_df |
data frame. life table output by the lt_abridged or lt_single_mx functions of DemoTools. |
#' Take life tables output from lt functions in DemoTools and reshape to long data frame
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
Sara Hertog
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.