| igo_members | R Documentation |
Extracts state-level membership records for one or more IGOs and years.
igo_members(ioname, year = NULL, status = "Full Membership")
ioname |
An IGO identifier or vector of identifiers from
igo_year_format3. Use |
year |
An integer or vector of years to assess. If |
status |
A character vector of membership statuses to extract. See state_year_format3 for valid statuses. |
A data.frame with one row per matching state, IGO, year and
membership status.
Codebook Version 3 IGO Data for the full reference.
Pevehouse, J. C., Nordstrom, T., McManus, R. W. & Jamison, A. S. (2020). Tracking organizations in the world: The Correlates of War IGO Version 3.0 data sets. Journal of Peace Research, 57(3), 492–503. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1177/0022343319881175")}.
igo_year_format3, igo_search(), state_year_format3.
Other membership functions:
igo_dyadic(),
igo_state_membership()
library(dplyr)
igo_members("EU", year = 1993) %>% as_tibble()
igo_members("EU") %>% as_tibble()
igo_members("NAFTA", year = c(1995:1998)) %>% as_tibble()
# Extract multiple membership statuses.
igo_members("ACCT", status = c("Associate Membership", "Observer")) %>%
as_tibble()
# States that are not members of the UN.
igo_members("UN", status = "No Membership") %>%
as_tibble()
# Vectorized search.
igo_members(c("NAFTA", "EU"), year = 1993) %>%
as_tibble() %>%
arrange(state)
# Use the countrycode package to add codes.
if (requireNamespace("countrycode", quietly = TRUE)) {
library(countrycode)
EU <- igo_members("EU")
EU$iso3c <- countrycode(EU$ccode, origin = "cown", destination = "iso3c")
EU$continent <- countrycode(EU$ccode,
origin = "cown",
destination = "continent"
)
tibble(EU)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.