Description Usage Arguments Details Value Author(s) Examples
View source: R/tidy_triangle_data.R
Take raw data from a data source (e.g. Human Mortality Database) and make it 'tidy'.
1 | tidy_triangle_data(triangle_data, source = "HMD")
|
triangle_data |
data.frame, A data.frame containing raw triangle data. |
source |
character, The source of the raw data. Supported sources: HMD. |
When using raw triangular data from HMD or other sources, the data is not well prepared for further use. tidy_triangular_data
does some transformations to prepare the data, mainly for visualization using ggplot2
.
A data.frame.
Philipp Ottolinger
1 2 3 4 | ## Not run:
triangles <- readHMDweb("RUS", "Deaths_lexis", "your@email.com", "your_password")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.