#RStats for Political Science

How to download OECD datasets in R

Packages we will need: In this blog post, we are going to look at downloading data from the OECD statsitics and data website. The Organisation for Economic Co-operation and Development (OECD) provides analysis, and policy recommendations for 38 industrialised countries. The 38 countries in the OECD are: We can download the OCED data package directly…

Top R packages for downloading political science and economics datasets

1. WDI The World Development Indicators (WDI) package by Vincent Arel-Bundock provides access to a database of hundreds of economic development indicators from the World Bank. Examples of variables include population, GDP, education, health, and poverty, school attendance rates.ee Reference: Arel-Bundock, V. (2017). WDI: World Development Indicators (R Package Version 2.7.1). 2. peacesciencer This package…

Create infographics with the Irish leader dataset in R and Canva

Click here to download the Irish leader datatset. This file details information on all Taoisigh since 1922. Source: Wikipedia Tentative Codebook Variable NameVariable DescriptionnoTaoiseach numbernameNamepartyPolitical partyconstituencyElectoral constituency bornDate of birthdiedDate of deathfirst_electedDate first entered the Dailentered_officeDate entering office of Taoiseachleft_officeDate leaving office of Taoiseachleft_dailDate left the Dailcum_daysTotal number of days in Dailcum_yearsTotal number of years…

Create a dataset of Irish parliament members

This blogpost will walk through how to scrape and clean up data for all the members of parliament in Ireland. Or we call them in Irish, TDs (or Teachtaí Dála) of the Dáil. We will start by scraping the Wikipedia pages with all the tables. These tables have information about the name, party and constituency…

Cleaning up messy World Bank data

Packages we will need: When you come across data from the World Bank, often it is messy. So this blog will go through how to make it more tidy and more manageable in R For this blog, we will look at World Bank data on financial aid. Specifically, we will be using values for net…

Examining Ireland’s foreign policy in pictures with R

Packages we will need: In January 2015, the Irish government published a review of Ireland’s foreign policy. The document, The Global Island: Ireland’s Foreign Policy for a Changing World offers a perspective on Ireland’s place in the world. In this blog, we will graph out some of the key features of Ireland’ foreign policy and so…

How to tidy up messy Wikipedia data with dplyr in R

Packages we will need: To see another blog post that focuses on cleaning messy strings and dates, click here to read We are going to look at Irish embassies and missions around the world. Where are the embassies, and which country has the most missions (including embassies, consulates and representational offices)? Let’s first scrape the…

Loading…

Something went wrong. Please refresh the page and/or try again.


Follow My Blog

Get new content delivered directly to your inbox.

Advertisement