memberstates: Member states of various international organizations.

Description Usage Format Source Examples

Description

Lists of the member states of various international organizations in various country code formats. Suggest new organizations at https://github.com/cjyetman/memberstates/issues

Usage

1

Format

Nested list

first level

Code for international organization. one of: coe (Council of Europe), eu (European Union), nato (North Atlantic Treaty Organization), oecd (Organisation for Economic Co-operation and Development)

second level

Country code type. One of: country.name, iso3c, ios2c, iso3n, cowc, cown

Source

http://www.oecd.org/about/membersandpartners/list-oecd-member-countries.htm

http://www.coe.int/en/web/about-us/our-member-states

http://www.nato.int/cps/en/natolive/nato_countries.htm

https://europa.eu/european-union/about-eu/countries_en

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
  memberstates$nato$iso3c
  memberstates$eu$country.name

  # subestting a data frame (using base R)
  url <- 'https://raw.githubusercontent.com/datasets/gdp/master/data/gdp.csv'
  df <- read.csv(url)
  df <- df[df$Year == max(df$Year), ]
  df[df$Country.Code %in% memberstates$eu$iso3c, ]

  ## Not run: 
  # subestting a data frame (using dplyr)
  library(dplyr)
  url <- 'https://raw.githubusercontent.com/datasets/gdp/master/data/gdp.csv'
  read.csv(url) %>%
    filter(Year == max(Year)) %>%
    filter(Country.Code %in% memberstates$eu$iso3c)
  
## End(Not run)

cjyetman/memberstates documentation built on Feb. 22, 2020, 12:39 p.m.