Project Tycho 2.0 R interface
The tycho2 R package is here! https://github.com/allopole/tycho2
I wrote a small R package to provide an R interface for data from Project Tycho 2.0, a repository for global health data in a standardized format compliant with FAIR (Findable, Accessible, Interoperable, and Reusable) guidelines.
Version 2.0 of the database currently contains:
- weekly case counts for 78 notifiable conditions for 50 states and 1284 cities between 1888 and 2014, reported by health agencies in the United States;
- data for dengue-related conditions for 100 countries between 1955 and 2010, obtained from the World Health Organization and national health agencies.
After installing tycho2 from github and creating an account with Project Tycho, this is all you need to do in R to retrieve data:
# Get all measles cases in California from 2000 to 2010
# Note: Retrieve your API key from your Project Tycho account
queryterms <- c(
"ConditionName=Measles",
"Admin1ISO=US-CA",
"PeriodStartDate>=2000-01-01",
"PeriodEndDate<=2010-01-01"
)
Measles_CA_2000_2010 <- tycho2("query",
queryterms=queryterms,
apikey='some1long2alphanumeric3string')
That’s it.
The development of this package was supported by the National Institute of General Medical Sciences of the National Institutes of Health under Award Number U01GM110744. The content is solely the responsibility of the authors and does not necessarily reflect the official views of the National Institutes of Health.