Tags: , ,

Internal Migration, Part I: Hexagonal maps of movement of people

Internal Migration, Part I: Hexagonal maps of movement of people

The Office for National Statistics published some of its most interesting data last week – internal migration. This is the movement of people within the UK of people who are already here, not counting people immigrating or emigrating from abroad. […]

Continue Reading

Practice with For Loops: Calculating Mean Ages

Practice with For Loops: Calculating Mean Ages

  At work I’ve been working on a project called Find My Seat, which is now live. You type in your postcode and it presents you with lots of useful data about the economy, healthcare, immigration and Brexit in your […]

Continue Reading

Using R to make Freedom of Information requests

Using R to make Freedom of Information requests

Like other departments the Ministry of Justice publishes spending data worth more than £25,000. It does this both for itself and for its executive agencies like the National Offender Management Service (NOMS) which runs the prison system. It does this […]

Continue Reading

How to Set Your Working Directory in RStudio on a PC

This is a quick tip to avoid having to use the setwd() function to set your working directory all the time. Assuming you are working on a PC using RStudio, here is how to change your working directory to a R sub-folder. […]

Continue Reading

Cyclists Involved in Accidents Undertaking

Cyclists Involved in Accidents Undertaking

Last week I wrote some stories about cyclists involved in accidents while undertaking. The stories generated a LOT of comment and debate – both far more and far more negative than I was expecting. I’ll address that in a moment, but first, here’s […]

Continue Reading

Overcrowding in prison

Overcrowding in prison

It’s been a rocky few months for the prison system in England and Wales. In December there was a riot at HMP Birmingham that lasted around 12 hours. Authorities had to send in Tornado teams to restore order. The bill for […]

Continue Reading

Andy Murray’s Long Road to the Top

Andy Murray’s Long Road to the Top

Andy Murray was crowned as the world number one in men’s tennis for the first time today. The two-time Wimbledon champion has long been out on his own as Britain’s best male tennis player and now he’s managed to overhaul […]

Continue Reading

How Much Money Has My Young Person’s Railcard Saved Me?

How Much Money Has My Young Person’s Railcard Saved Me?

In a few months time I will be turning 27 years old. This means that my 16-25 railcard, commonly known in Britain as a Young Person’s Railcard, won’t be valid any more. But you’re 26? I bought my railcard a […]

Continue Reading

Dodgy Road Signs, Traffic Lights and Markings: Part Two

Dodgy Road Signs, Traffic Lights and Markings: Part Two

At the end of the last post, we had our data in a file named defective. The data contains all the injuries caused by car accidents where a road sign, signal or marking was obscured or not working properly from 2010 […]

Continue Reading

Londoners Take the Bus Far More Often Than the Rest of England (Adjusted for Population)

Londoners Take the Bus Far More Often Than the Rest of England (Adjusted for Population)

The last post came in for some criticism on /r/rstats, in particular from /u/fang_xianfu, who argued it merely showed that London has more people than the rest of the country.

Continue Reading