pub_covid_hosp_state_timeseries {epidatr}R Documentation

COVID hospitalizations by state

Description

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 with as_of or lag.

fetch_args

fetch_args. Additional arguments to pass to fetch().

Details

Starting October 1, 2022, some facilities are only required to report annually.

Value

tibble::tibble

Examples

## Not run: 
pub_covid_hosp_state_timeseries(
  states = "fl",
  dates = epirange(20200101, 20200501)
)

## End(Not run)


[Package epidatr version 1.1.1 Index]