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 […]
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 […]
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. […]
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 […]
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 […]
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 […]
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 […]
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 […]
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.
In our previous two–part series we looked at the melt function from the reshape2 package. The creator of the package, Hadley Wickham, pointed me towards tidyr and the gather function as a better alternative instead.