prepare.hmd() prepares the raw 'Deaths by Lexis triangles' HMD data for further use by
the name of the 'Deaths by Lexis triangles' file downloaded from the Human Mortality Database.
This function reads the raw data into R and transforms data to
Furthermore seven columns (
upper, x1, x2, x3, y1, y2, y3) that contain the coordinates of the triangles will be added.
The age group
110+ will be removed from the data.
1 2 3 4