API docs: https://cmu-delphi.github.io/delphi-epidata/api/covid_hosp.html.
Obtains the COVID-19 reported patient impact and hospital capacity data by state. This dataset is provided by the US Department of Health & Human Services.
Usage
pub_covid_hosp_state_timeseries(
states,
dates = "*",
...,
as_of = NULL,
issues = NULL,
fetch_args = fetch_args_list()
)
Arguments
- states
character. Two letter state abbreviations.
- dates
timeset
. Dates to fetch. Defaults to all ("*") dates.- ...
not used for values, forces later arguments to bind by name
- as_of
Date. Optionally, the as of date for the issues to fetch. If not specified, the most recent data is returned. Mutually exclusive with
issues
.- issues
timeset
. Optionally, the issue of the data to fetch. If not specified, the most recent issue is returned. Mutually exclusive withas_of
orlag
.- fetch_args
fetch_args
. Additional arguments to pass tofetch()
.
Examples
if (FALSE) {
pub_covid_hosp_state_timeseries(
states = "fl",
dates = epirange(20200101, 20200501)
)
}