Skip to content

Commit

Permalink
v0.2.0 coronanetR
Browse files Browse the repository at this point in the history
  • Loading branch information
saudiwin committed Jul 16, 2022
1 parent ebc5fcf commit 70eb087
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
18 changes: 11 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
Package: CoronaNet
Package: CoronaNetR
Type: Package
Title: API Access to CoronaNet Data
Version: 0.2.0
Authors@R:
person(given = "Timothy",
c(person(given = "Timothy",
family = "A. Model",
role = c("aut", "cre"),
email = "[email protected]")
email = "[email protected]"),
person(given="Robert",
family="Kubinec",
role="ctb",
email="[email protected]"))
Maintainer: CoronaNet Research Project <[email protected]>
Description: CoronaNet is a database on government responses to the coronavirus.
Description: CoronaNetR is a database on government responses to the COVID-19 pandemic.
To date, this dataset provides the most comprehensive and granular
documentation of such government policies in the world, capturing data for
18 broad policy categories alongside many other dimensions, including the
initiator, target, and timing of a policy. This package offers efficient
and user-friendly R access to the CoronaNet data.
20 broad policy categories alongside many other dimensions, including the
initiator, target, and timing of a policy. This package is a programmatic
front-end to up-to-date CoronaNet data.
License: MIT + file LICENSE
Depends:
R (>= 2.10)
Expand Down
15 changes: 13 additions & 2 deletions R/get_event.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#' Get CoronaNet Event Data
#' Access CoronaNet Event Data API
#'
#' Use this function to obtain the latest policy event data from CoronaNet via an http API.
#'
#' This function offers programmatic access to the CoronaNet public release dataset, comprising
#' over 80,000 distinct policy records and 93 fields. The dataset is updated regularly as policy
#' coding continues. The entire dataset can be downloaded through this function, although by default
#' it selects a subset of columns (see argument details below). To access additional columns, use the
#' `additional_columns` argument and include a character vector of column names. For a full list of
#' possible columns, see the [CoronaNet codebook](https://www.coronanet-project.org/assets/CoronaNet_Codebook_Panel.pdf).
#'
#' See code examples for demonstration of filtering syntax.
#'
#' @param countries A character vector of country name(s), e.g., c("Yemen", "Saudi Arabia"). "All" is used as the default.
#' @param type A character vector of policy types, e.g., c("Lockdown", "Curfew"). "All" is used as the default. See https://www.coronanet-project.org/taxonomy.html? for a list of policy types.
Expand Down Expand Up @@ -59,7 +70,7 @@ get_event <- function(countries = "All",
"city","type","type_sub_cat","description"),
additional_columns = NULL,
from = "2019-12-31",
to = "2027-07-01",
to = "2022-01-01",
include_no_end_date=TRUE) {

# Errors/Warnings ----
Expand Down
16 changes: 13 additions & 3 deletions man/get_event.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 70eb087

Please sign in to comment.