dplyr, (mc)lapply, for-loop and speed

Want to know whether lapply is quicker than a for-loop? Is there a faster solution? This is the place!


DfT traffic count data in R

I read this tweet thread yesterday, and one of the great things in it was discovering that the Department for Transport release traffic count data for Great Britain. When you download individual observation… Continue reading

Getting started with spatial data in R – EdinbR talk

Slides from January 2018 EdinbR session on spatial data in R.

Network analysis video – 7th Scottish QGIS user group

Network analysis presentation from the 7th Scottish QGIS user group. Featuring Ordnance Survey open data, QGIS, GRASS and R.

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

This is part two in a series I’m writing on network analysis. The first part is here. In this section I’m going to cover allocating resources, again using the St James’ development in Edinburgh as an example. Most excitingly (for me) the end of this post covers the impact of changes in resource allocation.

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