Description Usage Arguments Details Author(s) Examples
prepare.hmd()
prepares the raw 'Deaths by Lexis triangles' HMD data for further use by lexis.hmd
.
1 |
file, |
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 numeric
and Date
.
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.
Philipp Ottolinger
1 2 3 4 5 6 7 | ## Not run:
library(LexisPlotR)
# Load sample data
path <- system.file("extdata", "Deaths_lexis_sample.txt", package = "LexisPlotR")
deaths.triangles <- prepare.hmd(path)
## End(Not run)
|
Warning messages:
1: 'prepare.hmd' is deprecated.
Use 'tidy_triangle_data' instead.
See help("Deprecated")
2: In prepare.hmd(path) : NAs introduced by coercion
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.