#RStats for Political Science

How to create semi-circle parliament graphs with the ggparliament package in R

Packages we will need: Check out part 1 of this blog where you can follow along how to scrape the data that we will use in this blog. It will create a dataset of the current MPs in the Irish Dail. In this blog, we will use the ggparliament package, created by Zoe Meers. With…

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…

Running tidy t-tests with the infer package in R

Packages we will need: For this t-test, we will compare US millenials and non-millenials and their views of the UK’s influence in the world. The data will come from Chicago Council Survey of American Public Opinion on U.S. Foreign Policy Click here to download 2017 policy survey data The survey investigates American public opinion on…

Loading…

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


Follow My Blog

Get new content delivered directly to your inbox.