Skip to content

COVID-19 Trends and Impact Survey Global Opendata API R Interface

License

Notifications You must be signed in to change notification settings

am0505/ctisglobal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctisglobal

R-CMD-check

This package offers a set of utility functions to fetch data and documentation from Global COVID-19 Trends and Impact Survey (CTIS) using R. CTIS was formerly known as COVID-19 Symptoms Survey (CSS).

Installation

You can install the development version of ctisglobal from GitHub with:

# install.packages("devtools")
devtools::install_github("am0505/ctisglobal")

Example

Load the package

library(ctisglobal)

Fetch all the available indicators for CTIS opendata, their corresponding description, survey questions used in constructing the indicator and ranges of dates for which the question is asked in the survey.

ctis_documentation <- ctis_get_public_apidoc()

Fetch available CTIS Country-Regions.

ctis_regions <- ctis_get_public_regions()

Fetch CTIS estimates for a range of dates.

ctis_public <- ctis_get_public_data(indicator = "covid_vaccine",
                                    type = "daily",
                                    country = "India",
                                    region = NA,
                                    date_start = "2020-04-23",
                                    date_end = "2021-12-31")
#> https://covidmap.umd.edu/api/resources?indicator=covid_vaccine&type=daily&country=India&daterange=20200423-20211231

About

COVID-19 Trends and Impact Survey Global Opendata API R Interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages