process_testing: Process the shaped testing data into a Tableau ready format

Description Usage Arguments Value Examples

View source: R/process_metrics.R

Description

Process the shaped testing data into a Tableau ready format

Usage

1
process_testing(testing_df)

Arguments

testing_df

data.frame output by pull_testing

Value

a Tableau ready data.frame with the following columns:

Date

Date hospital information was reported

Region

Name of geographic unit (county, state, HERC region)

Region_ID

ID code for geographic unit (FIPS for county and state)

RowType

Are row values summary or daily values

Testing_Positive_Specimens

Count of specimens positive for COVID-19

Testing_Nonpositive_Specimens

Count of specimens not positive for COVID-19

Testing_Total_Specimens

Count of specimens

Testing_Percent_Positive

Percent specimens positive for COVID-19

Testing_Incident_Tests

Total number of incidents tested

Testing_Incident_Test_Target

Target number of incidents to test

Testing_Percent_of_Target

Percent incidents tested out of target (Testing_Incident_Tests / Testing_Incident_Test_Target)

Testing_Composite_Class

Summary metric for testing based on Testing_Percent_Positive and Testing_Percent_of_Target

Examples

1
2
3
4
## Not run: 
  #write me an example

## End(Not run)

carlbfrederick/ohiCovidMetrics documentation built on Jan. 10, 2022, 12:20 p.m.