ft_age | R Documentation |
Selection data from the 122 Cities Mortality Reporting System by age group.
ft_age
A tibble
.
The original dataset covers from 1962 to 2016. For each week, in 122 US cities, mortality figures by age group and cause, considered separately, are included.
mrs_age_schema
Other mrs example data:
ft_age_rpd
,
ft_cause_rpd
,
ft_num
,
ft
,
mrs_db_geo
,
mrs_db
,
mrs_ft_new
,
mrs_ft
# The operations to obtain it from the `ft` data set are:
if (rlang::is_installed("stringr")) {
ft_age <- ft |>
dplyr::select(-`Pneumonia and Influenza Deaths`, -`All Deaths`) |>
tidyr::gather("Age", "All Deaths", 7:11) |>
dplyr::mutate(`All Deaths` = as.integer(`All Deaths`)) |>
dplyr::mutate(Age = stringr::str_replace(Age, " \\(all cause deaths\\)", ""))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.