Skip to contents

List all combinations of population, periods, and geographic layers available for a given topic. To search for individual topics use ha_topics().

Usage

ha_coverage(topic_key, layer_key = NULL, keys_only = FALSE, progress = TRUE)

Arguments

topic_key

Unique ID specifying a topic.

layer_key

Character string or vector of Unique IDs for geographic layers.

keys_only

Return only keys?

progress

Display a progress bar?

Value

Topic coverage tibble.

Examples

# \donttest{
ha_set("chicagohealthatlas.org")

ha_coverage("POP", progress = FALSE)
#> # A tibble: 1,666 × 7
#>    topic_key population_key population_name       population_grouping period_key
#>    <chr>     <chr>          <chr>                 <chr>               <chr>     
#>  1 POP       "A"            Asian                 "Race/Ethnicity"    2017-2021 
#>  2 POP       ""             Full population       ""                  2011-2015 
#>  3 POP       "FY"           Females, Young Adult… "Sex and Age"       2016-2020 
#>  4 POP       ""             Full population       ""                  2007-2011 
#>  5 POP       "A"            Asian                 "Race/Ethnicity"    2016-2020 
#>  6 POP       "PI"           Native American, Inf… "Race/Ethnicity an… 2017-2021 
#>  7 POP       ""             Full population       ""                  2017-2021 
#>  8 POP       ""             Full population       ""                  2012-2016 
#>  9 POP       "AO"           Asian, Middle-Aged A… "Race/Ethnicity an… 2015-2019 
#> 10 POP       "BMI"          Non-Hispanic Black, … "Race/Ethnicity, S… 2014-2018 
#> # ℹ 1,656 more rows
#> # ℹ 2 more variables: layer_key <chr>, layer_name <chr>
# }