jhu_sitrep_import: jhu sitrep data management and visualization

Description Usage Arguments Value Functions Examples

View source: R/sitrep_jhu.R

Description

clean and plot jhu sitrep

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

Arguments

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

Value

import and cleaned jhu dataset

Functions

Examples

 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)

avallecam/covid19viz documentation built on Sept. 24, 2020, 3:43 p.m.