Skip to content

warint/oxforR

Repository files navigation

oxforR

Overview

oxforR is based on the Oxford COVID-19 Government Response Tracker (OxCGRT) and allows to retrieve their latest data in a R format. The tracker shows governmental responses to COVID-19 through 17 indicators for all countries. For further information, please visit their website and their working paper.

Installation

You can install the released version of oxforR from CRAN with:

devtools::install_github("warint/oxforR")

Installation

You can install the current development version of ‘oxforR’ with:

devtools::install_github("warint/oxforR")

How-To

Step 1: Getting the country’s ISO code

A user needs to enter the ISO code of a country. To have access to this code, the following function provides this information.

oxforr_country() # A list of all countries will be produced oxforr_country(country="Canada") # The ISO code for Canada will be produced oxforr_country("Canada") # The ISO code for Canada will be produced

Step 2: Getting the indicator’s code

A user needs to enter the code of the desired indicator. To do so, the following function provides access to all the indicators of interest.

oxforr_indicator() # A list of all indicators will be produced oxforr_indicator(indicators="public") # A list with all the variables including "public" will be produced oxforr_indicator("public") # A list with all the variables including "public" will be produced

Step 3: Getting the data

Once the user knows all the arguments, s.he can collect the data in a very easy way through this function:

myData<-oxforr_data(country="CAN",indicator= c("C1","C2")) myData<-oxforr_data(country= c("CAN","USA"),indicator= c("C1","C2"))

About

Package

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages