Obtain data for one or more topics within specified populations for specified time periods and geographic scale.
All combinations of topic, population, period, and layer will be returned. Warnings will be generated for any invalid combinations.
Usage
ha_data(
topic_key,
population_key,
period_key,
layer_key,
geometry = FALSE,
progress = TRUE
)
Arguments
- topic_key
Character string or vector of Unique IDs(s) specifying topic(s).
- population_key
Character string or vector of Unique ID(s) for population stratification(s).
- period_key
Character string or vector of Unique ID(s) for time period(s).
- layer_key
Character string specifying an Unique ID for a geographic layer.
- geometry
Attach geometry to output?
- progress
Display a progress bar?
Examples
# \donttest{
ha_set("chicagohealthatlas.org")
ha_data("POP", "H", "2014-2018", "zip")
#> # A tibble: 58 × 7
#> geoid topic_key population_key period_key layer_key value standardError
#> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl>
#> 1 60601 POP H 2014-2018 zip 1274 234.
#> 2 60602 POP H 2014-2018 zip 81 48.0
#> 3 60603 POP H 2014-2018 zip 115 86.3
#> 4 60604 POP H 2014-2018 zip 34 16.4
#> 5 60606 POP H 2014-2018 zip 195 74.8
#> 6 60607 POP H 2014-2018 zip 2457 278.
#> 7 60608 POP H 2014-2018 zip 40146 1326.
#> 8 60609 POP H 2014-2018 zip 32860 880.
#> 9 60612 POP H 2014-2018 zip 4206 283.
#> 10 60616 POP H 2014-2018 zip 4600 395.
#> # ℹ 48 more rows
# }