ft_age {rolap} | R Documentation |
Mortality Reporting System by Age Group
Description
Selection data from the 122 Cities Mortality Reporting System by age group.
Usage
ft_age
Format
A tibble
.
Details
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.
Source
See Also
Other mrs example data:
ft_age_rpd
,
ft_cause_rpd
,
ft_num
,
ft
,
mrs_db_geo
,
mrs_db
,
mrs_ft_new
,
mrs_ft
Examples
# 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\\)", ""))
}
[Package rolap version 2.5.1 Index]