Skip to content

Commit

Permalink
comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StanTraykov committed Dec 30, 2020
1 parent 8427cdb commit ec3cc9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/opendata_bg.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ process_bg_data <- function(redownload = FALSE) {

# gen_tst_by <- c("date", "tests", "cases", "new_cases", "new_pcr_cases")
# TODO remove the following and uncomment above when the open data about
# new_pcr_tess gets fixed.
# new_pcr_tests gets fixed.
gen_tst_by <- c("date", "tests", "cases", "new_cases") #TODO remove
tst_tab <- tst_tab %>% dplyr::select(-"new_pcr_tests") #TODO remove

Expand All @@ -81,7 +81,7 @@ process_bg_data <- function(redownload = FALSE) {
# We now calculate dialy ag tests because the open data field is cumulative
# instead of daily (new_ag_tests wrongly matches ag_tests).
if (identical(tst_tab$ag_tests, tst_tab$new_ag_tests)) { #TODO remove
warning("Field new_ag_tests bogus at source; correctling locally.")
warning("Field new_ag_tests bogus at source; correcting locally.")
tst_tab$new_ag_tests[-1] <- tst_tab$new_ag_tests[-1] - #TODO remove
tst_tab$new_ag_tests[-nrow(tst_tab)] #TODO remove
} #TODO remove
Expand Down

0 comments on commit ec3cc9f

Please sign in to comment.