Created
May 28, 2017 07:39
-
-
Save giocomai/41e0286e61f8a7ecc9729865ac902b6f to your computer and use it in GitHub Desktop.
Extract the name of all UN member states from the official website of the United Nations in R #rstats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("rvest") | |
read_html(x = "http://www.un.org/en/member-states/") %>% | |
html_nodes(xpath = "//span[@class='member-state-name']") %>% | |
html_text() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment