Skip to content

Commit

Permalink
Add extra dataset: PHAC wastewater dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanpaulrsoucy committed Nov 2, 2023
1 parent f5f7149 commit de5de69
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions R/extra_datasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ extra_datasets <- function() {
# announce start
cat("Assembling extra datasets...", fill = TRUE)

# PHAC wastewater dataset
tryCatch(
{
# load data
d <- read_d("raw_data/active_ts/can/can_wastewater_copies_per_ml_subhr_ts.csv", val_numeric = TRUE)
# write dataset
write.csv(d, file.path("extra_data", "phac_wastewater", "phac_wastewater.csv"), row.names = FALSE, quote = 1:7, na = "")
},
error = function(e) {
cat("Error in updating PHAC wastewater dataset:", fill = TRUE)
print(e)
}
)

# territories: case and testing data from RVDSS since week ending 2022-09-03
tryCatch(
{
Expand Down

0 comments on commit de5de69

Please sign in to comment.