pull_stringency_index: Pull Oxford Stringency Index

View source: R/pull_stringency_index.R

pull_stringency_indexR Documentation

Pull Oxford Stringency Index

Description

API pull of Oxford COVID-19 Government Response Tracker. The stringency index is a composite index across 7 indicators on how governments respond to the COVID epidemic, with scores between 0-100

Usage

pull_stringency_index(
  date_start = "2020-01-22",
  date_end = NULL,
  pepfar_only = TRUE
)

Arguments

date_start

start date for stringency index as yyyy-mm-dd, default/min is Jan 22, 2020

date_end

end date for stringency index as yyyy-mm-dd, default is NULL which will run through today

pepfar_only

limit to just PEPFAR countries, default = TRUE

Details

More info at https://covidtracker.bsg.ox.ac.uk/about-api

Value

dataframe of all PEPFAR countries and their stringency index value by day

Source

https://covidtracker.bsg.ox.ac.uk/about-api

Examples

## Not run: 
df_stringency <- pull_stringency_index(date_end = "2021-04-01") 
## End(Not run)

USAID-OHA-SI/COVIDutilities documentation built on Aug. 18, 2022, 2:28 a.m.