Skip to contents

Compile "by statistic" raw data from the Human Mortality database

Usage

prep_hmd_deaths_5x1(dir_input)

prep_hmd_pop_5x1(dir_input)

prep_hmd_period_lt_5x1(dir_input_male, dir_input_female)

Arguments

dir_input

Path to directory containing raw location-specific files for all sexes.

dir_input_male

Path to directory containing raw location-specific files for males.

dir_input_female

Path to directory containing raw location-specific files for females.

Value

data.table() of HMD data for all locations.

Details

Currently there are functions to prep data in 5-year age groups and single year time periods for:

  • deaths: prep_hmd_deaths_5x1()

  • population: prep_hmd_pop_5x1()

  • life tables: prep_hmd_period_lt_5x1()