Title: | Cases of COVID-19 in the United States |
---|---|
Description: | A wrapper around the 'COVID Tracking Project API' <https://covidtracking.com/api/> providing data on cases of COVID-19 in the US. |
Authors: | Amanda Dobbyn [aut, cre] |
Maintainer: | Amanda Dobbyn <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.9 |
Built: | 2024-11-04 03:33:08 UTC |
Source: | https://github.com/aedobbyn/covid19us |
Currently limited to the worst-affected counties in mostly Washington state, California, and New York.
get_counties_info()
get_counties_info()
A tibble with one row per county and their COVID website information.
get_counties_info()
get_counties_info()
Get info about this dataset
get_info_covid19us()
get_info_covid19us()
A tibble with information about where the data is pulled from, details about the dataset, what the data types are, etc.
get_info_covid19us()
get_info_covid19us()
Get current counts for every state
get_states_current()
get_states_current()
A tibble with one row per state and columns for individuals' COVID statuses (positive, negative, pending, death) and their total.
get_states_current()
get_states_current()
Daily counts are updated every day at 4pm EST. This is the only function that takes arguments.
get_states_daily(state = "all", date = "all")
get_states_daily(state = "all", date = "all")
state |
State abbreviation for a specific state or all states with |
date |
For a specific date, a character or date vector of length 1 coercible to a date with |
A tibble with one row per state for all dates available with columns for individuals' COVID statuses (positive, negative, pending, death) and their total.
get_states_daily() get_states_daily("NY", "2020-03-17") get_states_daily(state = "WA") get_states_daily(date = "2020-03-11")
get_states_daily() get_states_daily("NY", "2020-03-17") get_states_daily(state = "WA") get_states_daily(date = "2020-03-11")
Get COVID-related information for each state
get_states_info()
get_states_info()
A tibble with one row per state incluing information on the state's data_site
where the data was pulled from and the covid_19_site
where data is published.
get_states_info()
get_states_info()
Get URLs and their details for each state
get_tracker_urls()
get_tracker_urls()
A tibble with one row for every state, the URL used by scrapers to get data, and a filter
column that provices the xpath or CSS selector used by the COVID-19 Tracking Project's scraper to get this data.
get_tracker_urls()
get_tracker_urls()
Get current US counts
get_us_current()
get_us_current()
A tibble with one row for the current count of the country's COVID statuses.
get_us_current()
get_us_current()
Updated every day at 4pm.
get_us_daily()
get_us_daily()
A tibble with one row per date in which data is available and counts for each of those states.
get_us_daily()
get_us_daily()
Get state data in long format
refresh_covid19us(type = "daily")
refresh_covid19us(type = "daily")
type |
One of |
A tibble of data retrieved with get_states_daily
or get_states_current
in long format with a data_type
and a value
column.
refresh_covid19us()
refresh_covid19us()