Description Usage Arguments Value Examples
View source: R/healthdata-api.R
This function will download data from healthdata.gov,
when supplied a tibble created with fetch_catalog()
. The function will search
for data products that are available in CSV format.CSV is chosen because it's
the most common and simplest format available to download directly from the API.
1 | fetch_data(catalog)
|
catalog |
this argument requires a catalog (tibble) created
with |
a tibble
with descriptive metadata
of a data product and a list-column of the available dataset.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
cdc_alc <- fetch_catalog("Centers for Disease Control and Prevention",
keyword = "alcohol|alcohol use"
)
nested_df_alc <- cdc_alc %>%
# pull Alzheimer's and Chronic Indicators datasets
dplyr::slice(1:2) %>%
fetch_data()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.