Description Usage Arguments Value Functions Examples
clean and plot jhu sitrep
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## Not run:
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")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.