library(dplyr) library(magrittr) library(stringr) library(ggplot2) library(tabulizer)
case_counts <- here::here("data/CaseCounts/drc", "as_of_17_may.pdf") %>% extract_tables(.) case_counts <- rbind(case_counts[[1]], case_counts[[2]])
The only thing we need right now are the total number of cases. Will hard-code now; worry about it later.
idx <- which(case_counts[ ,1] == "Total des décès") as.data.frame(case_counts[c(1, idx), ]) %>% readr::write_csv(path = here::here("data/CaseCounts/drc", "as_of_17_may.csv"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.