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 with 7 variables.

date

Date in YYYY-MM-DD format.

province

Name of province/state, for countries where data is provided split across multiple provinces/states.

country

Name of country/region.

lat

Latitude of center of geographic region, defined as either country or, if available, province.

long

Longitude of center of geographic region, defined as either country or, if available, province.

type

An indicator for the type of cases (confirmed, death, recovered).

cases

Number of cases on given date.

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
data(coronavirus)

require(dplyr)

# Get top confirmed cases by state
coronavirus %>%
  filter(type == "confirmed") %>%
  group_by(country) %>%
  summarise(total = sum(cases)) %>%
  arrange(-total) %>%
  head(20)

# Get the number of recovered cases in China by province
coronavirus %>%
  filter(type == "recovered", country == "China") %>%
  group_by(province) %>%
  summarise(total = sum(cases)) %>%
  arrange(-total)

iampronay/coronavirus documentation built on Dec. 10, 2020, 1:11 a.m.