knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
The covid19italy R package provides a tidy format dataset of the 2019 Novel Coronavirus COVID-19 (2019-nCoV) pandemic outbreak in Italy. The package includes the following three datasets:
italy_total
- daily summary of the outbreak on the national levelitaly_region
- daily summary of the outbreak on the region levelitaly_province
- daily summary of the outbreak on the province levelThe data was pull from Italy Department of Civil Protection
You can install the released version of covid19italy from CRAN with:
install.packages("covid19italy")
Or, install the most recent version from GitHub with:
# install.packages("devtools") devtools::install_github("RamiKrispin/covid19Italy")
The covid19italy package dev version is been updated on a daily bases. The update_data
function enables a simple refresh of the installed package datasets with the most updated version on Github:
library(covid19italy) update_data()
Note: must restart the R session to have the updates available
The italy_total
dataset provides an overall summary of the cases in Italy since the beginning of the covid19 outbreak since February 24, 2020. The dataset contains the following fields:
date
- timestamp, a Date
objecthospitalized_with_symptoms
- daily number of patients hospitalized with symptomsintensive_care
- daily number of patients on intensive caretotal_hospitalized
- daily total number of patients hospitalized (hospitalized_with_symptoms
+ intensive_care
)home_confinement
- daily number of people under home confinementcumulative_positive_cases
- a daily snapshot of the number of positive casesdaily_positive_cases
- daily new positive casesdaily_cases
- daily new positive, recovered, and death casesrecovered
- total number of recovered cases (cumulative)death
- total number of death cases (cumulative)positive_clinical_activity
- positive cases emerged from clinical activitypositive_surveys_tests
- positive cases emerging from surveys and tests, planned at national or regional levelcumulative_cases
- total number of positive cases (cumulative)total_tests
- total number of tests performed (cumulative)library(covid19italy) data(italy_total) str(italy_total) head(italy_total)
The italy_region
dataset provides an overall summary of the cases in Italy's regions. The dataset contains the following fields:
date
- timestamp, a Date
objectregion_code
- the region coderegion_name
- the region namelat
- region latitude coordinatelong
- region longitude coordinatehospitalized_with_symptoms
- daily number of patients hospitalized with symptomsintensive_care
- daily number of patients on intensive caretotal_hospitalized
- daily total number of patients hospitalized (hospitalized_with_symptoms
+ intensive_care
)home_confinement
- daily number of people under home confinementcumulative_positive_cases
- a daily snapshot of the number of positive casesdaily_positive_cases
- daily new positive casesdaily_cases
- daily new positive, recovered, and death casesrecovered
- total number of recovered cases (cumulative)death
- total number of death cases (cumulative)positive_clinical_activity
- positive cases emerged from clinical activitypositive_surveys_tests
- positive cases emerging from surveys and tests, planned at national or regional levelcumulative_cases
- total number of positive cases, recovered, and death (cumulative)total_tests
- total number of tests performed (cumulative)region_spatial
- the spatial region names as in the output of the ne_states
function from the rnaturalearth package data(italy_region) str(italy_region) head(italy_region)
The italy_region
dataset provides an overall summary of the cases in Italy's regions. The dataset contains the following fields:
date
- timestamp, a Date
objectregion_code
- the region coderegion_name
- the region nameprovince_code
- the province codeprovince_name
- the province nameprovince_abb
- the province abbreviationlat
- province latitude coordinatelong
- province longitude coordinatetotal_cases
- total number of positive cases (cumulative)new_tests
- daily number of positive casesprovince_spatial
- the spatial province names as in the output of the ne_states
function from the rnaturalearth packagedata(italy_province) str(italy_province) head(italy_province)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.