sum(col1 + col2 + col3 + col4, na.rm = TRUE)
into
sum(col1, na.rm=TRUE) + sum(col2, na.rm=TRUE) + sum(col3, na.rm=TRUE) + sum(col4, na.rm=TRUE)
Updates to column names and testing functions/calculations
pull_histTable_SG()
OLD_process_confirmed_cases()
clean_total_ed()
shape_total_ed_data()
process_total_ed()
rev_cusum_ucl()
rev_cusum_lcl()
calc_num_tests()
Updates to column names and testing functions/calculations
Bugfix to more robust way of truncating datetimes into dates.
The major change in this update is on how we treat dates for confirmed cases. Based on stakeholder feedback, we now present daily confirmed case numbers with the same date that they are posted with in Historical Data Table and other displays.
This version corrects a critical bug in the calculation of the trajectory class.
class_trajectory()
that was expecting a ratio (old) instead
of a percent change (current).This version is intended to be the last clean up version before we go live for the 'Tier 2' local dashboard.
This large jump represents work such that all metrics topics are functional, but still need to confirm that the output is identical for 1.0.0 version
process_*()
functions are described.clean_*()
functions into the pull_*()
functionsshape_*_data()
functions into the process_*()
functions
to simplify user APIOLD_process_confirmed_cases()
function to the package to ease transition to exclusive use of this
package to produce the metrics.rolling_weeks()
in which periods that were a multiple
of 7 days the earliest week was 7 NAs instead of a count. Now there
can only be 0-6 NAs to start the week vector.pull_histTable()
where some fields were incorrectly
imported as character instead of integerThis patch fixes a small bug in the process_case_metrics() function that wrote over the trajectory scores with trajectory classifications.
Also:
pull_histTable()
Minor patch to make output from process_case_metrics()
more suitable
for Tableau Ingestion.
This is a minimally viable product that can download the Historical Data Table from the DHS website and produce the Confirmed Case Metric file for export to Tableau for the Dashboard. It was tested against the file that Jeff produced for the DHS dashboard for the period ending 17 June 2020 and matches exactly (see the Producing Confirmed Case Metrics Vignette).
The only data source supported is the Historical Data Table that is posted on the DHS website. The calculations are the ones described in the OHI Confirmed Case Metric Reproducibility document. Note: they are the ones described as 'defined as' not the ones that are 'proposed'.
NEWS.md
file to track changes to the package.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.