jhu_sitrep_import.Rdclean and plot jhu sitrep
jhu_sitrep_import(source) jhu_sitrep_cleandb(data) jhu_sitrep_filter(data, country_region = "all") jhu_sitrep_cumulative(data) jhu_sitrep_all_sources(country_region = "all") jhu_sitrep_all_sources_tidy(data, data_filter = data_filter) jhu_sitrep_country_report(country_region = "Peru") jhu_sitrep_cleandb_country_only(data)
| source | string of source to use: "confirmed","deaths" or "recovered" |
|---|---|
| data | input of raw jhu dataset |
| country_region | input country name in english |
| data_filter | default from jhu_sitrep_all_sources output |
| country_region | input country name in english |
import and cleaned jhu dataset
jhu_sitrep_import: import data from github
jhu_sitrep_cleandb: clean jhu dataset
jhu_sitrep_filter: clean jhu dataset
jhu_sitrep_cumulative: clean jhu dataset
jhu_sitrep_all_sources: clean jhu dataset
jhu_sitrep_all_sources_tidy: clean jhu dataset
jhu_sitrep_country_report: clean jhu dataset
jhu_sitrep_cleandb_country_only: import only numbers for the country
if (FALSE) { library(covid19viz) library(tidyverse) jhu_sitrep <- jhu_sitrep_import(source = "confirmed") jhu_sitrep %>% jhu_sitrep_cleandb() %>% filter(country_region=="Peru") %>% arrange(desc(dates)) jhu_sitrep %>% jhu_sitrep_cleandb_country_only() %>% filter(country_region=="Australia") %>% avallecam::print_inf() jhu_sitrep_import(source = "confirmed") %>% jhu_sitrep_cleandb() %>% jhu_sitrep_filter(country_region="all") %>% jhu_sitrep_cumulative() jhu_sitrep_all_sources(country_region="Peru") }