knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  tidy = "styler",
  dev = "ragg_png",
  warning = FALSE,
  message = FALSE,
  out.width = "100%"
)

igoR

CRAN
status CRAN
results CRAN-Downloads r-universe R-CMD-check codecov CodeFactor DOI Lifecycle:
stable status

The goal of igoR is to provide access and to extract information from the Intergovernmental Organizations Database (IGOs), version 3, provided by the Correlates of War Project [@pevehouse2020].

The dataset (V3) includes information of r nrow(igoR::igo_search()) IGOs from r min(igoR::igo_year_format3$year) to r max(igoR::igo_year_format3$year), as well as membership information.

Additionally, a distribution of the State System Membership [@correlatesofwarproject2017] is included on this package.

Installation

Install igoR from CRAN:

install.packages("igoR")

You can install the developing version from GitHub:

library(remotes)
install_github("dieghernan/igoR")

Alternatively, you can install igoR using the r-universe:

# Install igoR in R:
install.packages("igoR", repos = c(
  "https://dieghernan.r-universe.dev",
  "https://cloud.r-project.org"
))

Basic usage

Search an IGO by name:

Search all IGOs related with "sugar":

library(igoR)

result_sugar <- igo_search("Sugar")
knitr::kable(result_sugar)

IGO members:

Composition of the European Economic Community over time:

eec_code <- igo_search("EEC", exact = TRUE)

# Founding
eec_init <- igo_members(eec_code$ioname, year = eec_code$sdate)
knitr::kable(eec_init, caption = paste0("EEC, members
                                        (", unique(eec_init$year), ")"))
# Latest date
eec_end <- igo_members(eec_code$ioname)
knitr::kable(eec_end, caption = paste0(
  "EEC, members (",
  unique(eec_end$year), ")"
))

Recommended packages

Citation

print(citation("igoR")[1], style = "html")

A BibTeX entry for LaTeX users:

toBibtex(citation("igoR")[1])

References



dieghernan/igoR documentation built on April 24, 2024, 2:15 a.m.