Description Usage Arguments Value Examples
View source: R/count_metrics.R
Process the shaped hospital data into a Tableau ready format
1 | process_hospital(hosp_df)
|
hosp_df |
data.frame output by |
a Tableau ready data.frame with the following columns:
Date hospital report was run
Date hospital information was reported
Name of geographic unit (county, state, HERC region)
ID code for geographic unit (FIPS for county and state)
Are row values summary or daily values
Daily count of COVID patients
Daily count of COVID patients in the ICU
Total Beds (ICU, Intermediate, Med/Surg, Neg. Flow)
Total Immediate Beds Available (ICU, Intermediate, Med/Surg, Neg. Flow)
Total ICU Beds
Immediate ICU Beds Available
Current Number of Ventilated Patients (Induvated and mechanically ventilated)
Total rented/owned/demoed general use ventilators on hand
Immediate Intermediate Care Beds Available
Immediate Negative Airflow Isolation Beds Available
Immediate Medical/Surgical Beds Available
Hosp_beds_IBA / Hosp_totalbeds
Hosp_ICU_IBA / Hosp_ICU_IBA
Hosp_num_px_vent / Hosp_total_vents
Trajectory for Hospitalized COVID patient count (see score_trajectory
)
Trajectory for Hospitalized COVID patient count (see class_trajectory
)
Trajectory for ICU COVID patient count (see score_trajectory
)
Trajectory for ICU COVID patient count (see class_trajectory
)
1 2 3 4 5 6 7 8 | ## Not run:
library(dplyr)
output <- pull_hospital("path-to-hospital-extract") %>%
shape_hospital_data() %>%
process_hospital()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.