preprocess_healthdata_data: Preprocess healthdata data set, calculating incidence,...

View source: R/healthdata_data.R

preprocess_healthdata_dataR Documentation

Preprocess healthdata data set, calculating incidence, adjusting date, and calculating national incidence.

Description

Preprocess healthdata data set, calculating incidence, adjusting date, and calculating national incidence.

Usage

preprocess_healthdata_data(raw_healthdata_data, fips_codes, measure)

Arguments

raw_healthdata_data

tibble one row and columns issue_date and data The data column should be a list of data frames, with column names date, state, previous_day_admission_adult_covid_confirmed, and previous_day_admission_pediatric_covid_confirmed

fips_codes

covidData::fips_codes data object

measure

the measure to retrieve, either "hospitalizations" or "flu hospitalizations"

Value

a result of similar format to raw_healthdata_data, but columns date, location, and inc


reichlab/covidData documentation built on April 5, 2024, 5 p.m.