Who asked what? Using R to examine what MPs ask about in Parliament

I whipped this up while I was on the train from Cumbria to London and I was trying to reacquaint myself with R and RStudio.

It’s using the hansard package mainly to grab details of oral and written questions from the UK Parliament API.

The source code is here.