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.
I thought I’d start a weekly round-up of good uses of R I’ve seen elsewhere. We’ll start with four links this Friday: ComputerWorld’s R resources Cheat Sheet Longhow Lam’s use of scraping to show how cars lose value after you begin to rack up […]
I took this free course as my first real introduction to the R programming language. I would highly recommend it for any beginner who wants a comprehensive overview of R.
Before we begin: Hadley Wickham, the reshape2 package creator, pointed me in the direction of the tidyr package for melting data. I’ll take a look at it after this post. As promised from before, a look at @hadleywickham‘s reshape2 package […]
Every year the Home Office, which is responsible for drugs policy, carries out an anonymous survey into use of illegal drugs in England and Wales.
In the last post we discussed annotations on line plots. In this post, we are going to take it a step further and look at block annotations.
Strikes don’t really happen too much in Britain any more. A total of 170,000 working days were lost in Britain due to strikes and industrial action in 2015. That might sound like a lot, but it was actually the second […]
My colleagues and I at Trinity Mirror ranked mental health around England on Monday for World Mental Health Day. We aggregated four datasets – depression, contact with mental health services, the recovery rate from anxiety and depression and antidepressant prescriptions – […]
After looking at Manchester’s flat boom, we’re going over t’Pennines to Leeds, or more accurately the LS postcode for Leeds and the surrounding area.