knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" ) library(tidyverse)
epidemos is a collection of useful tools for epidemiological analysis that is still work in progress. Up to know, the published beta version includes functions primarily focussing on the data collection/scraping process. In order to facilitate that process, epidemos provides APIs to different public sources of large epidemiological datasets such as the Global Health Data Exchange (GHDx).
You can install epidemos
from github via:
# install.packages("devtools") devtools::install_github("schliebs/epidemos") library(epidemos)
Download ghdx US county level data from 1980 - 2014
library(epidemos) downloadHealthData(dataset = "ghdx", folder = "rawdata")
Unzip and clean ghdx data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.