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.
A few points to notice:— Lee Macaulay 💬 (@lmcly) May 12, 2019
- Trudy Harrison wasn't elected till 2017
- You can pick up when MPs take on new briefs i.e. Sue Hayman in 2017 onwards or Tim Farron in 2015
- Rory Stewart has been a minister since 2015 which explains why he's not asking any questions