Generate the country-level demography data used by diseasy from the
U.S. Census Bureau International Database.
Usage
generate_demography(
regions = NULL,
year = 2020L,
idb_zip = "https://www.census.gov/data-tools/demo/data/idb/dataset/idbzip.zip"
)Arguments
- regions
(
character())
The geographic regions of interest. IfNULL, all regions are returned.- year
(
integer(1))
The year to keep from the source data.- idb_zip
(
character(1))
URL or file path to the U.S. Census Bureau IDB zip file.
Examples
if (FALSE) { # \dontrun{
demography <- generate_demography(regions = c("DK", "FI", "IS", "NO", "SE"))
} # }
