Recent Posts

I’ve been a Nadal fan for a long time – right back to the days of the pirate-pants so yeah, really a long time. In all this time, Rafa …

A question came up recently at work about how to use a filter statement entered as a complete string variable inside dplyr’s filter() …

This is just a small note (mainly for myself but hopefully may be of some use to a few others!) to remind of how to update a package on …

Downloading the data Shiny App I recently saw this great post on Nathan Yau’s FlowingData website which guesses a person’s name based …

How resources are grouped in CKAN Initialising ckanr and exploring groups of resources Connect to CKAN with dplyr and download from one …

Projects

*

R Training Resources and Tips

A short list of resources and tips to help with learning some R basics, with particular focus on the tidyverse.

phstemplates

An R package containing standard templates for use by Public Health Scotland.

objectremover RStudio Addin

An RStudio addin to assist with removing objects from the global environment. Features include removing objects according to name patterns and object type.

Recent & Upcoming Talks

A quick summary and demo of my experience of using the redoc package.

Recent Publications

Quickly discover relevant content by filtering publications.

We investigated associations between outcomes and DAA treatment by comparing post-treatment to baseline periods using a within-subjects …

The aim of this study was to assess the effect of the ‘How to save a life’ campaign on the supply of take-home naloxone

This study compared mortality rates for patients treated for hepatitis C in the era of direct acting antivirals with the general …

We assessed the extent to which opioid-agonist therapy is protective against drug-related mortality in Scotland

We compared the predicted hepatocellular carcinoma probability for individuals with cirrhosis and cured hepatitis C with the general …