Description Usage Arguments Value Examples
View source: R/healthdata-api.R
This function allows users to read the available healthdata.gov catalog into R. The catalog can be downloaded in its entirety, filtered by agency, keyword(s), or both. The catalog consists of name and description of the available data products in the data API endpoint, as well as distribution metadata (download url, format, modified date...).
1 | fetch_catalog(agency = NULL, keyword = NULL)
|
agency |
name of agency to pull in API call.
This requires the full agency name in proper case.
Function |
keyword |
keyword(s) to pull in API call.
This argument can be supplied on its own or with an agency argument.
The keyword argument uses regular expression to detect presence of
pattern in a string. Function |
a tibble
with descriptive metadata of
the available catalog including a nested list-column of the
data distribution.
1 2 3 4 5 6 7 8 | ## Not run:
fetch_catalog("Centers for Disease Control and Prevention")
cdc_alc <- fetch_catalog("Centers for Disease Control and Prevention",
keyword = "alcohol|alcohol use"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.