Celebrating 20 years of CRAN

In April I spoke for the Royal Statistical Society (Glasgow branch) at their event celebrating 20 years of CRAN. The other speakers were Charis Chanialidis and Colin Gillespie. Like most people I find… Continue reading

Spatial networks – case study St James centre, Edinburgh (1/3)

Last year I spent a bit of time learning about routing and network analysis. I created a map of distance from each GB postcode to the nearest railway station. At the time my… Continue reading

Transcribed Scottish snow data available (1945-2007)

I’m nearly 12 months late writing this post. I think it must have slipped my mind! The primary dataset for my PhD was the snow survey of Great Britain. You can read more… Continue reading

RPostgreSQL and schemas

The database PostgreSQL can have different schemas. These work like a window for users, where they get to see specific things within a database, e.g. tables. In this post we’ll look at how… Continue reading

R with GRASS GIS – easiest Munros

I’ve been having a more sustained play with R and GRASS together. I’ve previously used them, in tandem, for processing satellite images, but haven’t been much further. In this post I’ll look at… Continue reading

R – iteratively changing column classes

When you write an ESRI Shapefile from R, writeOGR assumes your numeric fields are real numbers and so you get a lot of redundant zeros appended. This is misleading and distracting when you… Continue reading

R – Change columns names in a spatial dataframe

Ordnance Survey have a great OpenRoads dataset, but unfortunately it contains a column called ‘primary’, which is a keyword in SQL. This makes it challenging/impossible to import the OpenRoads dataset into a SQL… Continue reading

Converting (British) National Grid references

I was supplied spatial point data this summer where the locations were detailed in Ordnance Survey’s National Grid (NGR) format. If you’re not familiar with it, rather than using eastings and northings (in… Continue reading

EARL 2016 talk

I spoke on 14th September at the EARL (Effective Applications of the R Language) conference in London. This is event is concerned exclusively with the R programming language and it was the first… Continue reading

PhD corrections accepted!

My PhD has been a long road, but there’s only one hurdle left: submitting a hard bound copy of my thesis. I got word today that my thesis corrections have been accepted. In… Continue reading