coronavirus: The 2019 Novel Coronavirus COVID-19 (2019-nCoV) Dataset

Description Usage Format Details Source Examples

Description

daily summary of the Coronavirus (COVID-19) cases by state/province.

Usage

1

Format

A data.frame object

Details

The dataset contains the daily summary of Coronavirus cases (confirmed, death, and recovered), by state/province

Source

Johns Hopkins University Center for Systems Science and Engineering (JHU CCSE) Coronavirus website

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data(coronavirus)

require(dplyr)

# Get top confirmed cases by state

coronavirus %>%
 filter(type == "confirmed") %>%
 group_by(Country.Region) %>%
 summarise(total = sum(cases)) %>%
 arrange(-total) %>%
 head(20)

# Get the number of recovered cases in Mainland China by province
 coronavirus %>%
    filter(type == "recovered", Country.Region == "Mainland China") %>%
    group_by(Province.State) %>%
    summarise(total = sum(cases)) %>%
    arrange(-total)

adityasinhak/coronavirus documentation built on April 21, 2020, 7:28 a.m.