Recent Posts

For a piece of work I had to calculate the number of matches that a team plays away from home in a row, which we will call …

Combining case_when() and across() If you want to use case_when() and across() different variables, then here is an example that can do …

This blog post is just a note that when you try to do a grouped summary of a date variable but some groups have all missing values, it …

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() …

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.