ha_data {healthatlas} | R Documentation |
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.
ha_data(
topic_key,
population_key,
period_key,
layer_key,
geometry = FALSE,
wide = FALSE,
progress = TRUE
)
topic_key |
Character string or vector of Unique IDs specifying topics. |
population_key |
Character string or vector of Unique IDs for population stratifications. |
period_key |
Character string or vector of Unique IDs for time periods. |
layer_key |
Character string or vector of Unique IDs for geographic layers. |
geometry |
Attach geometry to output? |
wide |
Pivot wider so that each row contains the values of all topics within a population at a specified time period and a geographic area? |
progress |
Display a progress bar? |
Data tibble containing value and standard error for each topic measure.
ha_set("chicagohealthatlas.org")
ha_data("POP", "H", "2014-2018", "zip")