Description Usage Format Source Examples
Lists of the member states of various international organizations in various country code formats. Suggest new organizations at https://github.com/cjyetman/memberstates/issues
1 |
Nested list
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)
Country code type. One of: country.name, iso3c, ios2c, iso3n, cowc, cown
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.