ha_data {healthatlas}R Documentation

Obtain Data

Description

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,
  wide = FALSE,
  progress = TRUE
)

Arguments

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?

Value

Data tibble containing value and standard error for each topic measure.

Examples


ha_set("chicagohealthatlas.org")

ha_data("POP", "H", "2014-2018", "zip")


[Package healthatlas version 0.1.0 Index]