README.md

covid19census

Lifecycle:
experimental Travis build
status Codecov test
coverage

Overview

The package covid19census provides functions to extract COVID-19 cases, deaths, hospitalizations and test of U.S. and Italy at the county and regional level, respectively, and then combine them with other population metrics (age, sex, prevalence of chronic conditions, income indexes, access to health services and many others).

Installation

Download the package in a local folder and then run the following code.

devtools::install_local("path_to_package")

Alternatively, you can install it directly from github.

# the repo at the moment private so you need to be authorized 
# don't share the token
library(devtools)

devtools::install_github("c1au6i0/covid19census_dev")

Usage

A dataset that includes COVID-19 data and all the other demographic variables can be obtained executing getus_all (get-U.S-all) to get U.S data, or getit_all (get-Italy-all) to get Italy data.

library(covid19census)

# to retrieve u.s data you can use 
# the new york times or john hopkins university repository f
all_us <- getus_all(repo = "jhu")

# to retrieve italy data
all_it <- getit_all()

Details on the other functions and the datasets can be found in the vignette of the package vignette("v_covid19census").

U.S. Datasets and Sources

Data regarding COVID-19 number of cases and deaths (at the county level) can be obtained from the New York Time or the Johns Hopkins University, whereas number of tests and hospitalizations from the the Covid Tracking Project.

The other datsets were obtained from the Homeland Infrastructure Foundation, the Census, Mapping Medicare Disparities, and activity indexes calculated by Victor Couture, Jonathan Dingel, Allison Green, Jessie Handbury, and Kevin Williams based on smartphone movement data provided by PlaceIQ. Emissions of pm2.5 in micro g/m3 (2016) were reported by and #’ aggregate by

This is a list of U.S. datasets that can be accessed directly or in a dataframe containing also COVID-19 metrics:

Note that info for some counties are missing in some datasets. For example, hospbeds contains info on 2545 counties, fl65 has 3224 counties, whereas datasets from the Census have 3220.

Italy: Datasets and Sources

Data regarding COVID-19 deaths, confirmed cases, test and hospitalizations are extracted from the Protezione Civile repository

Demographic metrics and other stats regarding medical conditions and vaccinations were obtained from the ISTAT, Ministero della Salute. Data regarding pm2.5 were collected by Istituto Superiore Per La protexione Ambientale

This is a list of Italy datasets that can be accessed directly or in a dataframe containing also COVID-19 metrics:

Raw Data and other Scripts

Raw data and the code used to import it can be found in the data-raw folder.

Terms of Use

Refer to the License for details on the terms of use and copyrights.



c1au6i0/covid19census_dev documentation built on May 8, 2020, 1:01 a.m.