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:

The data was pull from Italy Department of Civil Protection

Installation

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")

Data refresh

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

Italy summary

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:

library(covid19italy)

data(italy_total)

str(italy_total)

head(italy_total)

Italy region level

The italy_region dataset provides an overall summary of the cases in Italy's regions. The dataset contains the following fields:

data(italy_region)

str(italy_region)

head(italy_region)

Italy province level

The italy_region dataset provides an overall summary of the cases in Italy's regions. The dataset contains the following fields:

data(italy_province)

str(italy_province)

head(italy_province)


RamiKrispin/covid19Italy documentation built on April 8, 2023, 10:17 a.m.